Commit c8c1bda8 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #45240 from vmware/update_volume_samples

Automatic merge from submit-queue Adding note on how to use datastore cluster for volume provisioning **What this PR does / why we need it**: Recently https://github.com/kubernetes/kubernetes/pull/44868 is merged which allows using datastore cluster for static and dynamic PVs. Sample is required in the Read me file to help user, how they can specify path in the yaml for datastore within cluster. **Which issue this PR fixes** fixes # https://github.com/vmware/kubernetes/issues/129 **Special notes for your reviewer**: @BaluDontu @tusharnt **Release note**: ```release-note NONE ```
parents 3a259d38 db8ef962
...@@ -94,6 +94,11 @@ ...@@ -94,6 +94,11 @@
volumePath: "[datastore1] volumes/myDisk" volumePath: "[datastore1] volumes/myDisk"
fsType: ext4 fsType: ext4
``` ```
In the above example datastore1 is located in the root folder. If datastore is member of Datastore Cluster or located in sub folder, the folder path needs to be provided in the VolumePath as below.
```yaml
vsphereVolume:
VolumePath: "[DatastoreCluster/datastore1] volumes/myDisk"
```
[Download example](vsphere-volume-pv.yaml?raw=true) [Download example](vsphere-volume-pv.yaml?raw=true)
...@@ -233,7 +238,13 @@ ...@@ -233,7 +238,13 @@
parameters: parameters:
diskformat: zeroedthick diskformat: zeroedthick
datastore: VSANDatastore datastore: VSANDatastore
``` ```
If datastore is member of DataStore Cluster or within some sub folder, the datastore folder path needs to be provided in the datastore parameter as below.
```yaml
parameters:
datastore: DatastoreCluster/VSANDatastore
```
[Download example](vsphere-volume-sc-with-datastore.yaml?raw=true) [Download example](vsphere-volume-sc-with-datastore.yaml?raw=true)
Creating the storageclass: Creating the storageclass:
......
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