Skip to content

Commit 093b0c2

Browse files
authored
Merge pull request #21836 from mokua/patch-5
Update configmap.md
2 parents 1265a06 + 69c280d commit 093b0c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/en/docs/concepts/configuration/configmap.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ ConfigMaps can hold data that other parts of the system should use for configura
168168
To consume a ConfigMap in a volume in a Pod:
169169

170170
1. Create a config map or use an existing one. Multiple Pods can reference the same config map.
171-
1. Modify your Pod definition to add a volume under `.spec.volumes[]`. Name the volume anything, and have a `.spec.volumes[].configmap.localObjectReference` field set to reference your ConfigMap object.
171+
1. Modify your Pod definition to add a volume under `.spec.volumes[]`. Name the volume anything, and have a `.spec.volumes[].configMap.name` field set to reference your ConfigMap object.
172172
1. Add a `.spec.containers[].volumeMounts[]` to each container that needs the config map. Specify `.spec.containers[].volumeMounts[].readOnly = true` and `.spec.containers[].volumeMounts[].mountPath` to an unused directory name where you would like the config map to appear.
173173
1. Modify your image or command line so that the program looks for files in that directory. Each key in the config map `data` map becomes the filename under `mountPath`.
174174

0 commit comments

Comments
 (0)