Fix indentation in ConfigMap usage example (#3867)

* Fix indentation in ConfigMap usage example

* Fix other example
This commit is contained in:
Josh Curl
2017-05-22 13:41:18 -07:00
committed by Andrew Chen
parent cd5e98a2dc
commit 50f2daa8d8
@@ -209,22 +209,22 @@ The `command` section references the `special.level` item stored in the ConfigMa
apiVersion: v1
kind: Pod
metadata:
name: dapi-test-pod
name: dapi-test-pod
spec:
containers:
- name: test-container
image: gcr.io/google_containers/busybox
command: [ "/bin/sh", "-c", "ls /etc/config/" ]
volumeMounts:
containers:
- name: test-container
image: gcr.io/google_containers/busybox
command: [ "/bin/sh", "-c", "ls /etc/config/" ]
volumeMounts:
- name: config-volume
mountPath: /etc/config
volumes:
- name: config-volume
mountPath: /etc/config
volumes:
- name: config-volume
configMap:
# Provide the name of the ConfigMap containing the files you want
# to add to the container
name: special-config
restartPolicy: Never
configMap:
# Provide the name of the ConfigMap containing the files you want
# to add to the container
name: special-config
restartPolicy: Never
```
When the pod runs, the command (`"ls /etc/config/"`) produces the output below:
@@ -243,23 +243,23 @@ In this case, the `special.key` item will be mounted in the `config-volume` volu
apiVersion: v1
kind: Pod
metadata:
name: dapi-test-pod
name: dapi-test-pod
spec:
containers:
- name: test-container
image: gcr.io/google_containers/busybox
command: [ "/bin/sh","-c","cat /etc/config/keys/special.level" ]
volumeMounts:
containers:
- name: test-container
image: gcr.io/google_containers/busybox
command: [ "/bin/sh","-c","cat /etc/config/keys/special.level" ]
volumeMounts:
- name: config-volume
mountPath: /etc/config
volumes:
- name: config-volume
mountPath: /etc/config
volumes:
- name: config-volume
configMap:
name: special-config
items:
- key: special.level
path: /keys
restartPolicy: Never
configMap:
name: special-config
items:
- key: special.level
path: /keys
restartPolicy: Never
```
When the pod runs, the command (`"cat /etc/config/keys/special.level"`) produces the output below: