Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Kube Token #89

Open
gogo199432 opened this issue May 10, 2024 · 2 comments
Open

[Question] Kube Token #89

gogo199432 opened this issue May 10, 2024 · 2 comments
Labels
documentation Improvements or additions to documentation duplicate This issue or pull request already exists enhancement New feature or request good first issue Good for newcomers

Comments

@gogo199432
Copy link

Quick question. I'm trying to use the Kubernetes Cluster State template and on every tutorial website, and also in the template itself it asks for a {$KUBE.API.TOKEN} which I'm supposed to retry from a secret. However this helm does not deploy a secret with a token in it. I see that the service account is assigned to the pod, but it is not obvious how I can assign the token of this account in the Zabbix UI to my macro.

@aeciopires
Copy link
Member

Hello @gogo199432

I believe this issue is related to the issue #49.

Unfortunately I don't have the knowledge to implement this, but if you do, I would really like to see a Pull Request about this and incorporate it into the helm chart.

@aeciopires aeciopires added documentation Improvements or additions to documentation duplicate This issue or pull request already exists enhancement New feature or request good first issue Good for newcomers labels May 21, 2024
@jbee43
Copy link

jbee43 commented May 29, 2024

@gogo199432 try this

apiVersion: v1
kind: Secret
metadata:
  name: some-name
  namespace: zabbix-namespace
  annotations:
    kubernetes.io/service-account.name: zabbix-service-account-name
type: kubernetes.io/service-account-token

kubectl apply -f this.yml

Check name
kubectl get serviceaccount -A or kubectl get serviceaccount -n zabbix-namespace

Retrieve JWT
kubectl get secret some-name -n zabbix-namespace -o jsonpath={.data.token} | base64 -d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation duplicate This issue or pull request already exists enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants