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".
This commit is contained in:
@@ -180,7 +180,7 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: app
|
- name: app
|
||||||
image: my-app
|
image: my-app
|
||||||
volumeMount:
|
volumeMounts:
|
||||||
- name: config
|
- name: config
|
||||||
mountPath: /config
|
mountPath: /config
|
||||||
volumes:
|
volumes:
|
||||||
@@ -234,7 +234,7 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- image: my-app
|
- image: my-app
|
||||||
name: app
|
name: app
|
||||||
volumeMount:
|
volumeMounts:
|
||||||
- mountPath: /config
|
- mountPath: /config
|
||||||
name: config
|
name: config
|
||||||
volumes:
|
volumes:
|
||||||
@@ -327,7 +327,7 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: app
|
- name: app
|
||||||
image: my-app
|
image: my-app
|
||||||
volumeMount:
|
volumeMounts:
|
||||||
- name: password
|
- name: password
|
||||||
mountPath: /secrets
|
mountPath: /secrets
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
Reference in New Issue
Block a user