August 2018
Intermediate to advanced
352 pages
12h 30m
English
Even though it isn't recommended, you can also expose secrets as environmental variables. To accomplish this, create a new file called secret_env_pod.yml that looks like the following and refer the below screenshot:
apiVersion: v1kind: Podmetadata: name: myenvpodspec: containers: - name: shell image: alpine env: - name: MY_SECRET valueFrom: secretKeyRef: name: my-secret key: secret.txt command: - "bin/ash" - "-c" - "sleep 10000"

Read now
Unlock full access