22 lines
549 B
YAML
22 lines
549 B
YAML
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: config-cmd-test-pod
|
|
spec:
|
|
containers:
|
|
- name: test-container
|
|
image: gcr.io/google_containers/busybox
|
|
command: [ "/bin/sh", "-c", "echo $(KUBE_CONFIG_1) $(KUBE_CONFIG_2)" ]
|
|
env:
|
|
- name: KUBE_CONFIG_1
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: test-configmap
|
|
key: data-1
|
|
- name: KUBE_CONFIG_2
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: test-configmap
|
|
key: data-2
|
|
restartPolicy: Never
|