Created
June 19, 2015 05:22
-
-
Save pmorie/2000a295de2d8eca9546 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: secret-example-pod | |
spec: | |
containers: | |
- name: secret-test-container | |
image: busybox | |
command: [ "/bin/sh", "-c", "cat /etc/secret-volume/*" ] | |
volumeMounts: | |
# name must match the volume name below | |
- name: secret-volume | |
mountPath: /etc/secret-volume | |
volumes: | |
- name: secret-volume | |
secret: | |
secretName: test-secret | |
restartPolicy: Never |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment