July 2019
Intermediate to advanced
502 pages
14h
English
The pod has a custom service that doesn't need to talk to the API server (so there's no need to auto-mount a service account token); instead, the pod offers imagePullSecret to pull our private repository and also has some generic secrets mounted as a file.
Let's get started and learn how to build a secure pod:
apiVersion: v1kind: ServiceAccountmetadata: name: service-accountautomountServiceAccountToken: false
Let's create it:
$ kubectl create -f service-account.yamlserviceaccount "service-account" created