K8s Service Accounts - philipf/notebook GitHub Wiki

Allow containers running in pods to access the Kubernetes Api

kubectl create serviceaccount <service-accountname>

...
kind: Pod
...
spec:
  serviceAcountName: <service-accountname>
  containers:
  ...