From 0734931890a4d7469435529e9c5488e27ade3416 Mon Sep 17 00:00:00 2001 From: Lisa Pettyjohn Date: Tue, 7 Sep 2021 20:51:40 -0400 Subject: [PATCH] OSDOCS-2184: Add features to vSphere CSI Op/Dr --- modules/persistent-storage-csi-tp-enable.adoc | 2 +- ...stent-storage-csi-vsphere-stor-policy.adoc | 22 +++++++++++++++++++ .../persistent-storage-csi-vsphere.adoc | 5 +++-- 3 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 modules/persistent-storage-csi-vsphere-stor-policy.adoc diff --git a/modules/persistent-storage-csi-tp-enable.adoc b/modules/persistent-storage-csi-tp-enable.adoc index 91f4c20540..da91c7e9d4 100644 --- a/modules/persistent-storage-csi-tp-enable.adoc +++ b/modules/persistent-storage-csi-tp-enable.adoc @@ -33,7 +33,7 @@ $ oc get co storage [source, terminal] ---- NAME VERSION AVAILABLE PROGRESSING DEGRADED SINCE -storage 4.8.0-0.nightly-2021-04-30-201824 True False False 4h26m +storage 4.9.0-0.nightly-2021-09-08-162532 True False False 4h26m ---- + * `AVAILABLE` should be "True". diff --git a/modules/persistent-storage-csi-vsphere-stor-policy.adoc b/modules/persistent-storage-csi-vsphere-stor-policy.adoc new file mode 100644 index 0000000000..f1eac4096d --- /dev/null +++ b/modules/persistent-storage-csi-vsphere-stor-policy.adoc @@ -0,0 +1,22 @@ +// Module included in the following assemblies: +// +// persistent-storage-csi-vsphere.adoc +// + +[id="persistent-storage-csi-vsphere-stor-policy_{context}"] += vSphere storage policy + +The vSphere CSI Operator Driver storage class uses vSphere's storage policy. {product-title} automatically creates a storage policy that targets datastore configured in cloud configuration: +[output, yaml] +---- +kind: StorageClass +apiVersion: storage.k8s.io/v1 +metadata: + name: thin-csi +provisioner: csi.vsphere.vmware.com +parameters: + StoragePolicyName: "$openshift-storage-policy-xxxx" +volumeBindingMode: WaitForFirstConsumer +allowVolumeExpansion: false +reclaimPolicy: Delete +---- diff --git a/storage/container_storage_interface/persistent-storage-csi-vsphere.adoc b/storage/container_storage_interface/persistent-storage-csi-vsphere.adoc index b4a5f0c674..7f4ff456a3 100644 --- a/storage/container_storage_interface/persistent-storage-csi-vsphere.adoc +++ b/storage/container_storage_interface/persistent-storage-csi-vsphere.adoc @@ -30,11 +30,12 @@ After full migration, in-tree plug-ins will eventually be removed in future vers ==== include::modules/persistent-storage-csi-about.adoc[leveloffset=+1] -.Additional resources -* xref:../../storage/container_storage_interface/persistent-storage-csi.adoc#persistent-storage-csi[Configuring CSI volumes] + +include::modules/persistent-storage-csi-vsphere-stor-policy.adoc[leveloffset=+1] :FeatureName: vSphere include::modules/persistent-storage-csi-tp-enable.adoc[leveloffset=+1] == Additional resources * xref:../../nodes/clusters/nodes-cluster-enabling-features.adoc#[Enabling features using feature gates] +* xref:../../storage/container_storage_interface/persistent-storage-csi.adoc#persistent-storage-csi[Configuring CSI volumes]