1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/persistent-storage-csi-tp-enable.adoc
2023-10-30 10:13:25 -04:00

135 lines
5.6 KiB
Plaintext

// Module included in the following assemblies:
//
// persistent-storage-csi-vsphere.adoc
// persistent-storage-csi-azure.adoc
// persistent-storage-csi-azure-file.adoc
ifeval::["{context}" == "persistent-storage-csi-vsphere"]
:vsphere:
endif::[]
ifeval::["{context}" == "persistent-storage-csi-azure"]
:azure:
endif::[]
ifeval::["{context}" == "persistent-storage-csi-azure-file"]
:azure_file:
endif::[]
ifeval::["{context}" == "persistent-storage-csi-vsphere"]
:vsphere:
endif::[]
:_mod-docs-content-type: PROCEDURE
[id="csi-tp-enable_{context}"]
= Enabling the {FeatureName} CSI driver operator
To enable the {FeatureName} Container Storage Interface (CSI) driver operator, you must enable feature gates with the `TechPreviewNoUpgrade` feature set.
.Procedure
. Enable feature gates with the `TechPreviewNoUpgrade` feature set (see _Nodes_ -> _Enabling features using feature gates_).
+
[IMPORTANT]
====
After turning Technology Preview features on by using feature gates, they cannot be turned off and cluster upgrades are prevented.
====
. Verify the cluster operator storage:
+
[source,terminal]
----
$ oc get co storage
----
+
[source,terminal]
----
NAME VERSION AVAILABLE PROGRESSING DEGRADED SINCE
storage 4.10.0-0.nightly-2021-11-15-034648 True False False 4m36s
----
+
* `AVAILABLE` should be "True".
* `PROGRESSING` should be "False".
* `DEGRADED` should be "False".
. Verify the status of the pods in the `openshift-cluster-csi-drivers` namespace to ensure that they are running:
+
[source,terminal]
----
$ oc get pod -n openshift-cluster-csi-drivers
----
+
ifdef::vsphere[]
[source,terminal]
----
NAME READY STATUS RESTARTS AGE
vmware-vsphere-csi-driver-controller-5646dbbf54-cnsx7 9/9 Running 0 4h29m
vmware-vsphere-csi-driver-node-ch22q 3/3 Running 0 4h37m
vmware-vsphere-csi-driver-node-gfjrb 3/3 Running 0 4h37m
vmware-vsphere-csi-driver-node-ktlmp 3/3 Running 0 4h37m
vmware-vsphere-csi-driver-node-lgksl 3/3 Running 0 4h37m
vmware-vsphere-csi-driver-node-vb4gv 3/3 Running 0 4h37m
vmware-vsphere-csi-driver-operator-7c7fc474c-p544t 1/1 Running 0 4h29m
----
endif::vsphere[]
ifdef::azure[]
[source,terminal]
----
NAME READY STATUS RESTARTS AGE
azure-disk-csi-driver-controller-5949bf45fd-pm4qb 11/11 Running 0 39m
azure-disk-csi-driver-node-2tcxr 3/3 Running 0 53m
azure-disk-csi-driver-node-2xjzm 3/3 Running 0 53m
azure-disk-csi-driver-node-6wrgk 3/3 Running 0 53m
azure-disk-csi-driver-node-frvx2 3/3 Running 0 53m
azure-disk-csi-driver-node-lf5kb 3/3 Running 0 53m
azure-disk-csi-driver-node-mqdhh 3/3 Running 0 53m
azure-disk-csi-driver-operator-7d966fc6c5-x74x5 1/1 Running 0 44m
----
endif::azure[]
ifdef::azure_file[]
[source,terminal]
----
NAME READY STATUS RESTARTS AGE
azure-file-csi-driver-controller-5949bf45fd-pm4qb 11/11 Running 0 39m
azure-file-csi-driver-node-2tcxr 3/3 Running 0 53m
azure-file-csi-driver-node-2xjzm 3/3 Running 0 53m
azure-file-csi-driver-node-6wrgk 3/3 Running 0 53m
azure-file-csi-driver-node-frvx2 3/3 Running 0 53m
azure-file-csi-driver-node-lf5kb 3/3 Running 0 53m
azure-file-csi-driver-node-mqdhh 3/3 Running 0 53m
azure-file-csi-driver-operator-7d966fc6c5-x74x5 1/1 Running 0 44m
----
endif::azure_file[]
. Verify that the storage class is installed:
+
[source,terminal]
----
$ oc get storageclass
----
+
ifdef::vsphere[]
[source,terminal]
----
NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
thin (default) kubernetes.io/vsphere-volume Delete Immediate false 5h43m
thin-csi csi.vsphere.vmware.com Delete WaitForFirstConsumer false 4h38m <1>
----
<1> vSphere storage class
endif::vsphere[]
ifdef::azure[]
[source,terminal]
----
NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
managed-premium (default) kubernetes.io/azure-disk Delete WaitForFirstConsumer true 76m
managed-csi disk.csi.azure.com Delete WaitForFirstConsumer true 51m <1>
----
<1> Azure Disk storage class
endif::azure[]
ifdef::azure_file[]
[source,terminal]
----
NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
azurefile-csi file.csi.azure.com Delete Immediate true 10m <1>
managed-csi disk.csi.azure.com Delete WaitForFirstConsumer true 35m
managed-premium (default) kubernetes.io/azure-disk Delete WaitForFirstConsumer true 35m
----
<1> Azure File storage class
endif::azure_file[]