ServiceAccount Token

Difficulty: Intermediate

Question

How does a Pod authenticate to the Kubernetes API?

Answer

Kubernetes automatically mounts a ServiceAccount token inside the Pod at `/var/run/secrets/kubernetes.io/serviceaccount/token`.

Concepts covered

Identity, Auth