Commit db8ef962 authored by divyenpatel's avatar divyenpatel

adding note on how to use datastore within cluster for dynamic and static pv

parent 2689f033
...@@ -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)
...@@ -234,6 +239,12 @@ ...@@ -234,6 +239,12 @@
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