Skip to content

Commit 95859dd

Browse files
authored
Merge pull request #32824 from divyenpatel/dev-1.24
deprecate vsphere volume and update migration support detail
2 parents 212a936 + 9fd1ccd commit 95859dd

File tree

1 file changed

+11
-55
lines changed

1 file changed

+11
-55
lines changed

content/en/docs/concepts/storage/volumes.md

Lines changed: 11 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -969,66 +969,15 @@ spec:
969969
For more information about StorageOS, dynamic provisioning, and PersistentVolumeClaims, see the
970970
[StorageOS examples](https://github.com/kubernetes/examples/blob/master/volumes/storageos).
971971
972-
### vsphereVolume {#vspherevolume}
972+
### vsphereVolume (deprecated) {#vspherevolume}
973973
974974
{{< 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.
977976
{{< /note >}}
978977
979978
A `vsphereVolume` is used to mount a vSphere VMDK volume into your Pod. The contents
980979
of a volume are preserved when it is unmounted. It supports both VMFS and VSAN datastore.
981980

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-
1032981
For more information, see the [vSphere volume](https://github.com/kubernetes/examples/tree/master/staging/volumes/vsphere) examples.
1033982

1034983
#### vSphere CSI migration {#vsphere-csi-migration}
@@ -1040,8 +989,15 @@ from the existing in-tree plugin to the `csi.vsphere.vmware.com` {{< glossary_to
1040989
[vSphere CSI driver](https://github.com/kubernetes-sigs/vsphere-csi-driver)
1041990
must be installed on the cluster and the `CSIMigration` and `CSIMigrationvSphere`
1042991
[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.
10451001

10461002
{{< note >}}
10471003
The following StorageClass parameters from the built-in `vsphereVolume` plugin are not supported by the vSphere CSI driver:

0 commit comments

Comments
 (0)