Azure Disk CSI Driver Operator

    Familiarity with persistent storage and is recommended when working with a CSI Operator and driver.

    To create CSI-provisioned PVs that mount to Azure Disk storage assets with this feature is enabled, OKD installs the Azure Disk CSI Driver Operator and the Azure Disk CSI driver by default in the namespace.

    • The Azure Disk CSI Driver Operator, after being enabled, provides a storage class named managed-csi that you can use to create persistent volume claims (PVCs). The Azure Disk CSI Driver Operator supports dynamic volume provisioning by allowing storage volumes to be created on-demand, eliminating the need for cluster administrators to pre-provision storage.

    • The Azure Disk CSI driver enables you to create and mount Azure Disk PVs.

    Storage vendors have traditionally provided storage drivers as part of Kubernetes. With the implementation of the Container Storage Interface (CSI), third-party providers can instead deliver storage plug-ins using a standard interface without ever having to change the core Kubernetes code.

    To enable the Azure Container Storage Interface (CSI) Driver Operator, you must enable feature gates with the TechPreviewNoUpgrade feature set.

    Procedure

    1. Enable feature gates with the TechPreviewNoUpgrade feature set (see NodesEnabling features using feature gates).

      1. NAME VERSION AVAILABLE PROGRESSING DEGRADED SINCE
      2. storage 4.8.0-0.nightly-2021-04-30-201824 True False False 4h26m
      • should be “False”.

      • DEGRADED should be “False”.

    2. Verify the status of the pods in the openshift-cluster-csi-drivers namespace to ensure that they are running:

      1. NAME READY STATUS RESTARTS AGE
      2. azure-disk-csi-driver-controller-5949bf45fd-pm4qb 11/11 Running 0 39m
      3. azure-disk-csi-driver-node-2tcxr 3/3 Running 0 53m
      4. azure-disk-csi-driver-node-2xjzm 3/3 Running 0 53m
      5. azure-disk-csi-driver-node-frvx2 3/3 Running 0 53m
      6. azure-disk-csi-driver-node-mqdhh 3/3 Running 0 53m
      7. azure-disk-csi-driver-operator-7d966fc6c5-x74x5 1/1 Running 0 44m
    3. Verify that the storage class is installed:

      1. NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
      2. managed-premium (default) kubernetes.io/azure-disk Delete WaitForFirstConsumer true 76m

    Additional resources