fix example in configure-pod-configmap.md
This commit is contained in:
@@ -248,7 +248,7 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: test-container
|
- name: test-container
|
||||||
image: gcr.io/google_containers/busybox
|
image: gcr.io/google_containers/busybox
|
||||||
command: [ "/bin/sh","-c","cat /etc/config/keys/special.level" ]
|
command: [ "/bin/sh","-c","cat /etc/config/keys" ]
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: config-volume
|
- name: config-volume
|
||||||
mountPath: /etc/config
|
mountPath: /etc/config
|
||||||
@@ -258,11 +258,11 @@ spec:
|
|||||||
name: special-config
|
name: special-config
|
||||||
items:
|
items:
|
||||||
- key: special.level
|
- key: special.level
|
||||||
path: /keys
|
path: keys
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
```
|
```
|
||||||
|
|
||||||
When the pod runs, the command (`"cat /etc/config/keys/special.level"`) produces the output below:
|
When the pod runs, the command (`"cat /etc/config/keys"`) produces the output below:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
very
|
very
|
||||||
|
|||||||
Reference in New Issue
Block a user