20 lines
490 B
YAML
20 lines
490 B
YAML
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: config-volume-test-pod
|
|
spec:
|
|
containers:
|
|
- name: test-container
|
|
image: gcr.io/google_containers/busybox
|
|
command: [ "/bin/sh", "-c", "cat /etc/config/path/to/special-key" ]
|
|
volumeMounts:
|
|
- name: config-volume
|
|
mountPath: /etc/config
|
|
volumes:
|
|
- name: config-volume
|
|
configMap:
|
|
name: test-configmap
|
|
items:
|
|
- key: data-1
|
|
path: path/to/special-key
|
|
restartPolicy: Never |