Create 11-2-kuard-config.yaml

This commit is contained in:
Brendan Burns 2017-08-19 21:50:32 -07:00 committed by GitHub
parent 5c37536776
commit 03dddd62b7

31
11-2-kuard-config.yaml Normal file
View File

@ -0,0 +1,31 @@
apiVersion: v1
kind: Pod
metadata:
name: kuard-config
spec:
containers:
- name: test-container
image: gcr.io/kuar-demo/kuard-amd64:1
imagePullPolicy: Always
command:
- "/kuard"
- "$(EXTRA_PARAM)"
env:
- name: ANOTHER_PARAM
valueFrom:
configMapKeyRef:
name: my-config
key: another-param
- name: EXTRA_PARAM
valueFrom:
configMapKeyRef:
name: my-config
key: extra-param
volumeMounts:
- name: config-volume
mountPath: /config
volumes:
- name: config-volume
configMap:
name: my-config
restartPolicy: Never