1apiVersion: v1
2kind: Pod
3metadata:
4 name: dapi-test-pod
5spec:
6 containers:
7 - name: test-container
8 image: k8s.gcr.io/busybox
9 command: [ "/bin/sh", "-c", "echo $(SPECIAL_LEVEL_KEY) $(SPECIAL_TYPE_KEY)" ]
10 env:
11 - name: SPECIAL_LEVEL_KEY
12 valueFrom:
13 configMapKeyRef:
14 name: special-config
15 key: SPECIAL_LEVEL
16 - name: SPECIAL_TYPE_KEY
17 valueFrom:
18 configMapKeyRef:
19 name: special-config
20 key: SPECIAL_TYPE
21 restartPolicy: Never