Installing from GitHub through command line terminal

The operator for IBM block storage CSI driver can be installed directly from GitHub from a command line terminal. Installing the CSI (Container Storage Interface) driver is part of the operator installation process.

Before you begin

Procedure

Use the following steps to install the operator and driver, using GitHub through a command line terminal.

  1. Download the manifest from GitHub.
    curl https://raw.githubusercontent.com/IBM/ibm-block-csi-operator/master/deploy/installer/generated/ibm-block-csi-operator.yaml > ibm-block-csi-operator.yaml
  2. (Optional): If required, update the image fields in the ibm-block-csi-operator.yaml.
  3. Install the operator.
    $ kubectl -n kube-system apply -f ibm-block-csi-operator.yaml
  4. Verify the operator running. (Make sure the Status is Running.)
    $ kubectl get pod -l app.kubernetes.io/name=ibm-block-csi-operator -n kube-system
    NAME                                    READY   STATUS    RESTARTS   AGE
    ibm-block-csi-operator-5bb7996b86-xntss 1/1     Running   0          10m
  5. Install the IBM block storage CSI driver by creating an IBMBlockCSI custom resource.
    1. Download the manifest from GitHub.
      curl https://raw.githubusercontent.com/IBM/ibm-block-csi-operator/master/deploy/crds/csi.ibm.com_v1_ibmblockcsi_cr.yaml > csi.ibm.com_v1_ibmblockcsi_cr.yaml
    2. (Optional): If required, update the image repository and/or tag fields in the csi.ibm.com_v1_ibmblockcsi_cr.yaml.
    3. Install the csi.ibm.com_v1_ibmblockcsi_cr.yaml.
      $ kubectl -n kube-system apply -f csi.ibm.com_v1_ibmblockcsi_cr.yaml