-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
Outdated default service account token secret instructions in "Access Clusters Using the Kubernetes API' page #45628
Comments
Page mentioned in issue: https://kubernetes.io/docs/tasks/administer-cluster/access-cluster-api/ |
/retitle Outdated default service account token secret instructions in "Access Clusters Using the Kubernetes API' page |
/sig auth |
/kind bug |
/assign |
Hello @hrmcardle0. i've just tested the instructions on page https://kubernetes.io/docs/tasks/administer-cluster/access-cluster-api/ with a 1.30 cluster and they seem to work...
Can you try again and provide the outputs of your commands? If these instructions still work, I think we could close this issue. Thanks! |
In the 'without kubectl proxy', the section on https://kubernetes.io/docs/tasks/administer-cluster/access-cluster-api/:
Create a secret to hold a token for the default service account
kubectl apply -f - <<EOF
apiVersion: v1
kind: Secret
metadata:
name: default-token
annotations:
kubernetes.io/service-account.name: default
type: kubernetes.io/service-account-token
EOF
This is apparently not a thing anymore since 1.22. I attempted it on v1.27 and despite there being no error message, the secret does not exist.
The text was updated successfully, but these errors were encountered: