@@ -969,66 +969,15 @@ spec:
969
969
For more information about StorageOS, dynamic provisioning, and PersistentVolumeClaims, see the
970
970
[StorageOS examples](https://github.com/kubernetes/examples/blob/master/volumes/storageos).
971
971
972
- ### vsphereVolume {#vspherevolume}
972
+ ### vsphereVolume (deprecated) {#vspherevolume}
973
973
974
974
{{< note >}}
975
- You must configure the Kubernetes vSphere Cloud Provider. For cloudprovider
976
- configuration, refer to the [vSphere Getting Started guide](https://vmware.github.io/vsphere-storage-for-kubernetes/documentation/).
975
+ We recommend to use vSphere CSI out-of-tree driver instead.
977
976
{{< /note >}}
978
977
979
978
A ` vsphereVolume` is used to mount a vSphere VMDK volume into your Pod. The contents
980
979
of a volume are preserved when it is unmounted. It supports both VMFS and VSAN datastore.
981
980
982
- {{< note >}}
983
- You must create vSphere VMDK volume using one of the following methods before using with a Pod.
984
- {{< /note >}}
985
-
986
- # ### Creating a VMDK volume {#creating-vmdk-volume}
987
-
988
- Choose one of the following methods to create a VMDK.
989
-
990
- {{< tabs name="tabs_volumes" >}}
991
- {{% tab name="Create using vmkfstools" %}}
992
- First ssh into ESX, then use the following command to create a VMDK :
993
-
994
- ` ` ` shell
995
- vmkfstools -c 2G /vmfs/volumes/DatastoreName/volumes/myDisk.vmdk
996
- ` ` `
997
-
998
- {{% /tab %}}
999
- {{% tab name="Create using vmware-vdiskmanager" %}}
1000
- Use the following command to create a VMDK :
1001
-
1002
- ` ` ` shell
1003
- vmware-vdiskmanager -c -t 0 -s 40GB -a lsilogic myDisk.vmdk
1004
- ` ` `
1005
-
1006
- {{% /tab %}}
1007
-
1008
- {{< /tabs >}}
1009
-
1010
- # ### vSphere VMDK configuration example {#vsphere-vmdk-configuration}
1011
-
1012
- ` ` ` yaml
1013
- apiVersion: v1
1014
- kind: Pod
1015
- metadata:
1016
- name: test-vmdk
1017
- spec:
1018
- containers:
1019
- - image: k8s.gcr.io/test-webserver
1020
- name: test-container
1021
- volumeMounts:
1022
- - mountPath: /test-vmdk
1023
- name: test-volume
1024
- volumes:
1025
- - name: test-volume
1026
- # This VMDK volume must already exist.
1027
- vsphereVolume:
1028
- volumePath: "[DatastoreName] volumes/myDisk"
1029
- fsType: ext4
1030
- ` ` `
1031
-
1032
981
For more information, see the [vSphere volume](https://github.com/kubernetes/examples/tree/master/staging/volumes/vsphere) examples.
1033
982
1034
983
# ### vSphere CSI migration {#vsphere-csi-migration}
@@ -1040,8 +989,15 @@ from the existing in-tree plugin to the `csi.vsphere.vmware.com` {{< glossary_to
1040
989
[vSphere CSI driver](https://github.com/kubernetes-sigs/vsphere-csi-driver)
1041
990
must be installed on the cluster and the `CSIMigration` and `CSIMigrationvSphere`
1042
991
[feature gates](/docs/reference/command-line-tools-reference/feature-gates/) must be enabled.
1043
-
1044
- This also requires minimum vSphere vCenter/ESXi Version to be 7.0u1 and minimum HW Version to be VM version 15.
992
+ You can find additional advice on how to migrate in VMware's
993
+ documentation page [Migrating In-Tree vSphere Volumes to vSphere Container Storage Plug-in](https://docs.vmware.com/en/VMware-vSphere-Container-Storage-Plug-in/2.0/vmware-vsphere-csp-getting-started/GUID-968D421F-D464-4E22-8127-6CB9FF54423F.html).
994
+
995
+ Kubernetes v{{< skew currentVersion >}} requires that you are using vSphere 7.0u2 or later
996
+ in order to migrate to the out-of-tree CSI driver.
997
+ If you are running a version of Kubernetes other than v{{< skew currentVersion >}}, consult
998
+ the documentation for that version of Kubernetes.
999
+ If you are running Kubernetes v{{< skew currentVersion >}} and an older version of vSphere,
1000
+ consider upgrading to at least vSphere 7.0u2.
1045
1001
1046
1002
{{< note >}}
1047
1003
The following StorageClass parameters from the built-in `vsphereVolume` plugin are not supported by the vSphere CSI driver :
0 commit comments