Menu Close

5.14.4. 启用 vSphere CSI Driver Operator

要启用 vSphere Container Storage Interface(CSI)Driver Operator,您必须使用 TechPreviewNoUpgrade 功能集启用功能门。

流程

  1. 通过 TechPreviewNoUpgrade 功能集启用功能门(请参阅 NodesEnabling features using feature gates)。

    重要

    在使用功能门(feature gate)启用技术预览功能后,无法关闭这些技术预览功能,并会防止集群升级。

  2. 验证集群操作器存储:

    $ oc get co storage
    NAME    VERSION                             AVAILABLE   PROGRESSING DEGRADED    SINCE
    storage 4.9.0-0.nightly-2021-09-08-162532   True        False       False       4h26m
    • AVAILABLE 应该为 "True"。
    • PROGRESSING 应该为 "False"。
    • DEGRADED 应该为 "False"。
  3. 验证 openshift-cluster-csi-drivers 命名空间中的 pod 状态,以确保它们正在运行:

    $ oc get pod -n openshift-cluster-csi-drivers
    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
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
  1. 验证是否安装了存储类:

    $ oc get storageclass
    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 存储类
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 存储类