Installing from the OpenShift web console

When using the Red Hat OpenShift Container Platform, the operator for IBM block storage CSI driver can be installed directly from OpenShift web console, through the OperatorHub. Installing the CSI (Container Storage Interface) driver is part of the operator installation process.

Before you begin

About this task

The Red Hat OpenShift Container Platform uses the following SecurityContextConstraints for the following serviceAccounts:
serviceAccount SecurityContextConstraint
ibm-block-csi-operator restricted
ibm-block-csi-controller-sa anyuid
ibm-block-csi-node-sa privileged

Procedure

  1. From Red Hat OpenShift Container Platform Operators > OperatorHub, select Projects: kube-system.
  2. Search for IBM block storage CSI driver.
  3. Select the Operator for IBM block storage CSI driver and click Install.
    The Operator Subscription form appears.
  4. Set the Installation Mode to kube-system, under A specific namespace on the cluster.
  5. Click Subscribe.
  6. From Operators > Installed Operators, check the status of the Operator for IBM block storage CSI driver.
    Wait until the Status is Up to date and then InstallSucceeded.
  7. Once the operator installation progress has completed, click on the installed Operator for IBM block storage CSI driver.
  8. Click Create Instance to create the IBM block storage CSI driver (IBMBlockCSI).
  9. (Optional:) Edit the yaml file in the web console as follows:
    apiVersion: csi.ibm.com/v1
    kind: IBMBlockCSI
    metadata:
      name: ibm-block-csi
    spec:
      controller:
        repository: ibmcom/ibm-block-csi-driver-controller
        tag: 1.0.0
        imagePullPolicy: IfNotPresent
        affinity:
          nodeAffinity:
            requiredDuringSchedulingIgnoredDuringExecution:
              nodeSelectorTerms:
                - matchExpressions:
                  - key: kubernetes.io/arch
                    operator: In
                    values:
                      - amd64
      node:
        repository: ibmcom/ibm-block-csi-driver-node
        tag: 1.0.0
        imagePullPolicy: IfNotPresent
        affinity:
          nodeAffinity:
            requiredDuringSchedulingIgnoredDuringExecution:
              nodeSelectorTerms:
                - matchExpressions:
                  - key: kubernetes.io/arch
                    operator: In
                    values:
                      - amd64
      sidecars:
        - name: csi-node-driver-registrar
          repository: quay.io/k8scsi/csi-node-driver-registrar
          tag: v1.2.0
          imagePullPolicy: IfNotPresent
        - name: csi-provisioner
          repository: quay.io/k8scsi/csi-provisioner
          tag: v1.3.0
          imagePullPolicy: IfNotPresent
        - name: csi-attacher
          repository: quay.io/k8scsi/csi-attacher
          tag: v1.2.1
          imagePullPolicy: IfNotPresent
        - name: livenessprobe
          repository: quay.io/k8scsi/livenessprobe
          tag: v1.1.0
          imagePullPolicy: IfNotPresent
  10. Click Create.
    Wait until the Status is Running.
    Status:
      Controller Ready:  true
      Node Ready:        true
      Phase:             Running
      Version:           1.0.0
    Events:              <none>