Skip to content

Instantly share code, notes, and snippets.

@pmorie
Created June 19, 2015 05:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmorie/2000a295de2d8eca9546 to your computer and use it in GitHub Desktop.
Save pmorie/2000a295de2d8eca9546 to your computer and use it in GitHub Desktop.
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