Skip to content

d.configuration.md #375

@kkaarroollm

Description

@kkaarroollm

Task:

Create an nginx pod that uses 'myuser' as a service account

Task solution:

[...]
kubectl create -f pod.yaml
kubectl describe pod nginx # will see that a new secret called myuser-token-***** has been mounted <- Problem

Problem:

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions