mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
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 ```
This commit is contained in:
commit
c8c1bda866
@ -94,6 +94,11 @@
|
||||
volumePath: "[datastore1] volumes/myDisk"
|
||||
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)
|
||||
|
||||
@ -233,7 +238,13 @@
|
||||
parameters:
|
||||
diskformat: zeroedthick
|
||||
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)
|
||||
Creating the storageclass:
|
||||
|
Loading…
Reference in New Issue
Block a user