May 2018
Intermediate to advanced
554 pages
13h 51m
English
There are four files. We use Kubernetes Secret so that all pods can access it via an environment variable or mount a volume and access as a file. For more details about secrets, please refer to the Working with secrets section in Chapter 2, Walking through Kubernetes Concepts. You can use the kubectl command to load these four files to store to the Kubernetes secret via the following steps:
$ kubectl create secret generic registry-secrets --from-file secrets/secret "registry-secrets" created
$ kubectl describe secret registry-secretsName: ...