automountServiceAccountToken

A pod or service account setting that controls whether an API token is mounted into the pod automatically.

An unneeded mounted token gives anyone who compromises the pod a way into the API.

In more detail

Most application pods never call the Kubernetes API, so setting it to false removes a credential an attacker could steal. Leave it on only for workloads that need API access.

Example

automountServiceAccountToken: false

Related terms

Taught in

References

Certification courses