Files
website/docs/tasks/inject-data-application/secret-pod.yaml
T
Steve Perry 6935b1c6a9 Move topic to Injecting Data section. (#3623)
* Move topic to Injecting Data section.

* Update include paths.

* Remove old file.
2017-05-03 14:20:05 -07:00

18 lines
426 B
YAML

apiVersion: v1
kind: Pod
metadata:
name: secret-test-pod
spec:
containers:
- name: test-container
image: nginx
volumeMounts:
# name must match the volume name below
- name: secret-volume
mountPath: /etc/secret-volume
# The secret data is exposed to Containers in the Pod through a Volume.
volumes:
- name: secret-volume
secret:
secretName: test-secret