|
| 1 | +// Module included in the following assemblies: |
| 2 | +// |
| 3 | +// persistent-storage-csi-vsphere.adoc |
| 4 | +// persistent-storage-csi-azure.adoc |
| 5 | + |
| 6 | +ifeval::["{context}" == "persistent-storage-csi-vsphere"] |
| 7 | +:vsphere: |
| 8 | +endif::[] |
| 9 | +ifeval::["{context}" == "persistent-storage-csi-azure"] |
| 10 | +:azure: |
| 11 | +endif::[] |
| 12 | + |
| 13 | +[id="csi-tp-enable_{context}"] |
| 14 | += Enabling the {FeatureName} CSI Driver Operator |
| 15 | +To enable the {FeatureName} Container Storage Interface (CSI) Driver Operator, you must enable feature gates with the `TechPreviewNoUpgrade` feature set. |
| 16 | + |
| 17 | +.Procedure |
| 18 | + |
| 19 | +. Enable feature gates with the `TechPreviewNoUpgrade` feature set (see _Nodes_ -> _Enabling features using feature gates_). |
| 20 | ++ |
| 21 | +[IMPORTANT] |
| 22 | +==== |
| 23 | +After turning Technology Preview features on by using feature gates, they cannot be turned off and cluster upgrades are prevented. |
| 24 | +==== |
| 25 | +. Verify the cluster operator storage: |
| 26 | ++ |
| 27 | +[source,terminal] |
| 28 | +---- |
| 29 | +$ oc get co storage |
| 30 | +---- |
| 31 | ++ |
| 32 | +[source, terminal] |
| 33 | +---- |
| 34 | +NAME VERSION AVAILABLE PROGRESSING DEGRADED SINCE |
| 35 | +storage 4.8.0-0.nightly-2021-04-30-201824 True False False 4h26m |
| 36 | +---- |
| 37 | ++ |
| 38 | +* `AVAILABLE` should be "True". |
| 39 | +* `PROGRESSING` should be "False". |
| 40 | +* `DEGRADED` should be "False". |
| 41 | + |
| 42 | +. Verify the status of the pods in the `openshift-cluster-csi-drivers` namespace to ensure that they are running: |
| 43 | ++ |
| 44 | +[source,terminal] |
| 45 | +---- |
| 46 | +$ oc get pod -n openshift-cluster-csi-drivers |
| 47 | +---- |
| 48 | ++ |
| 49 | +ifdef::vsphere[] |
| 50 | +[source, terminal] |
| 51 | +---- |
| 52 | +NAME READY STATUS RESTARTS AGE |
| 53 | +vmware-vsphere-csi-driver-controller-5646dbbf54-cnsx7 9/9 Running 0 4h29m |
| 54 | +vmware-vsphere-csi-driver-node-ch22q 3/3 Running 0 4h37m |
| 55 | +vmware-vsphere-csi-driver-node-gfjrb 3/3 Running 0 4h37m |
| 56 | +vmware-vsphere-csi-driver-node-ktlmp 3/3 Running 0 4h37m |
| 57 | +vmware-vsphere-csi-driver-node-lgksl 3/3 Running 0 4h37m |
| 58 | +vmware-vsphere-csi-driver-node-vb4gv 3/3 Running 0 4h37m |
| 59 | +vmware-vsphere-csi-driver-operator-7c7fc474c-p544t 1/1 Running 0 4h29m |
| 60 | +---- |
| 61 | +endif::vsphere[] |
| 62 | + |
| 63 | +ifdef::azure[] |
| 64 | +[source, terminal] |
| 65 | +---- |
| 66 | +NAME READY STATUS RESTARTS AGE |
| 67 | +azure-disk-csi-driver-controller-5949bf45fd-pm4qb 11/11 Running 0 39m |
| 68 | +azure-disk-csi-driver-node-2tcxr 3/3 Running 0 53m |
| 69 | +azure-disk-csi-driver-node-2xjzm 3/3 Running 0 53m |
| 70 | +azure-disk-csi-driver-node-6wrgk 3/3 Running 0 53m |
| 71 | +azure-disk-csi-driver-node-frvx2 3/3 Running 0 53m |
| 72 | +azure-disk-csi-driver-node-lf5kb 3/3 Running 0 53m |
| 73 | +azure-disk-csi-driver-node-mqdhh 3/3 Running 0 53m |
| 74 | +azure-disk-csi-driver-operator-7d966fc6c5-x74x5 1/1 Running 0 44m |
| 75 | +---- |
| 76 | +endif::azure[] |
| 77 | + |
| 78 | +. Verify that the storage class is installed: |
| 79 | ++ |
| 80 | +[source,terminal] |
| 81 | +---- |
| 82 | +$ oc get storageclass |
| 83 | +---- |
| 84 | ++ |
| 85 | +ifdef::vsphere[] |
| 86 | +[source,terminal] |
| 87 | +---- |
| 88 | +NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE |
| 89 | +thin (default) kubernetes.io/vsphere-volume Delete Immediate false 5h43m |
| 90 | +thin-csi csi.vsphere.vmware.com Delete WaitForFirstConsumer false 4h38m <1> |
| 91 | +---- |
| 92 | +<1> vSphere storage class |
| 93 | +endif::vsphere[] |
| 94 | + |
| 95 | +ifdef::azure[] |
| 96 | +[source,terminal] |
| 97 | +---- |
| 98 | +NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE |
| 99 | +managed-premium (default) kubernetes.io/azure-disk Delete WaitForFirstConsumer true 76m |
| 100 | +managed-csi disk.csi.azure.com Delete WaitForFirstConsumer true 51m <1> |
| 101 | +---- |
| 102 | +<1> Azure storage class |
| 103 | +endif::azure[] |
0 commit comments