Add ability to consume secrets in env vars

This commit is contained in:
Paul Morie
2016-01-18 12:20:51 -05:00
parent dc83a11758
commit c548054560
6 changed files with 120 additions and 8 deletions

View File

@@ -0,0 +1,16 @@
apiVersion: v1
kind: Pod
metadata:
name: secret-env-pod
spec:
containers:
- name: test-container
image: gcr.io/google_containers/busybox
command: [ "/bin/sh", "-c", "env" ]
env:
- name: MY_SECRET_DATA
valueFrom:
secretKeyRef:
name: test-secret
key: data-1
restartPolicy: Never