21 lines
443 B
YAML
21 lines
443 B
YAML
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: dapi-test-pod
|
|
spec:
|
|
containers:
|
|
- name: test-container
|
|
image: k8s.gcr.io/busybox
|
|
command: [ "/bin/sh","-c","cat /etc/config/keys" ]
|
|
volumeMounts:
|
|
- name: config-volume
|
|
mountPath: /etc/config
|
|
volumes:
|
|
- name: config-volume
|
|
configMap:
|
|
name: special-config
|
|
items:
|
|
- key: SPECIAL_LEVEL
|
|
path: keys
|
|
restartPolicy: Never
|