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

Better document how to get service account tokens on modern Kubernetes #167

Open
chadlwilson opened this issue Jan 8, 2023 · 0 comments

Comments

@chadlwilson
Copy link
Member

In newer Kubernetes versions, indefinite lifetime service account tokens appear to have gone out of fashion, and there is no automation creation of a Secret for a token. If you want such a thing you need to create one with something like the below (using a GoCD instance and secrets in the gocd namespace, and re-using its default service account):

https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/

kind: Secret
apiVersion: v1
metadata:
  name: gocd-sa-secret
  namespace: gocd
  annotations:
    kubernetes.io/service-account.name: gocd
type: kubernetes.io/service-account-token

The plugin could do with documenting this better, including removing the misleading stuff on the configuration? Arguably should support retrieval of tokens dynamically. Yikes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant