service account

An identity for a program rather than a person; in Kubernetes each pod runs as one and gets a signed token for it.

In more detail

Kubernetes mounts the token under /var/run/secrets/kubernetes.io/serviceaccount. On Amazon EKS, a pod can exchange that token through OpenID Connect for its own IAM role, instead of borrowing the node's. Giving each program its own service account with only the permissions it needs limits the damage if it is compromised.

Examples

kubectl get pod web -o jsonpath='{.spec.serviceAccountName}'
Service accounts often log in far more than people and at all hours, so they need their own baselines.
On a Linux host a service account is an ordinary user the service runs as, which the course uses to own a secret file.

Related terms

Taught in

References

Certification courses