Skip to content

Commit 097292f

Browse files
authored
Update kustomization.md
Fix typo for the *volumeMount* field Running the previous snippets with `kubectl apply -k .` would generate this error: ``` error validating ".": error validating data: ValidationError(Deployment.spec.template.spec.containers[0]): unknown field "volumeMount" in io.k8s.api.core.v1.Container; ``` According to [this page](https://kubernetes.io/docs/concepts/storage/volumes/), the correct field is "volumeMounts".
1 parent 631bfd5 commit 097292f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/en/docs/tasks/manage-kubernetes-objects/kustomization.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ spec:
180180
containers:
181181
- name: app
182182
image: my-app
183-
volumeMount:
183+
volumeMounts:
184184
- name: config
185185
mountPath: /config
186186
volumes:
@@ -234,7 +234,7 @@ spec:
234234
containers:
235235
- image: my-app
236236
name: app
237-
volumeMount:
237+
volumeMounts:
238238
- mountPath: /config
239239
name: config
240240
volumes:
@@ -327,7 +327,7 @@ spec:
327327
containers:
328328
- name: app
329329
image: my-app
330-
volumeMount:
330+
volumeMounts:
331331
- name: password
332332
mountPath: /secrets
333333
volumes:

0 commit comments

Comments
 (0)