-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Open
Description
Task:
Create an nginx pod that uses 'myuser' as a service accountTask solution:
[...]
kubectl create -f pod.yaml
kubectl describe pod nginx # will see that a new secret called myuser-token-***** has been mounted <- ProblemProblem:
In Kubernetes v1.24 and later, ServiceAccount tokens are no longer created as Secrets by default.
Instead, tokens are generated dynamically by the kubelet and are mounted into the Pod as projected volumes.
Therefore, you will not see any Secret named myuser-token-*, and you won’t find it listed in kubectl get secrets.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels