Commit 336fa7cf authored by Xiangfei Zhu's avatar Xiangfei Zhu

Use the same name in volumeMounts and volumes

In some example files of vSphere volumes, volumeMounts and volumes have different names. kubectl create will fail with error message saying the pod is invalid because volumeMount with the name is not found.
parent 7171f6fd
......@@ -176,7 +176,7 @@
- name: test-volume
mountPath: /test-vmdk
volumes:
- name: vmdk-storage
- name: test-volume
persistentVolumeClaim:
claimName: pvc0001
```
......@@ -315,7 +315,7 @@
- name: test-volume
mountPath: /test-vmdk
volumes:
- name: vmdk-storage
- name: test-volume
persistentVolumeClaim:
claimName: pvcsc001
```
......
......@@ -10,6 +10,6 @@ spec:
- name: test-volume
mountPath: /test-vmdk
volumes:
- name: vmdk-storage
- name: test-volume
persistentVolumeClaim:
claimName: pvc0001
\ No newline at end of file
claimName: pvc0001
......@@ -10,6 +10,6 @@ spec:
- name: test-volume
mountPath: /test-vmdk
volumes:
- name: vmdk-storage
- name: test-volume
persistentVolumeClaim:
claimName: pvcsc0001
\ No newline at end of file
claimName: pvcsc0001
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment