ManualΒΆ

Note

For OpenShift environments, replace kubectl with oc

The following .yaml files needs to be applied to your cluster

namespace.yaml
This configuration file creates the ibm-spectrum-scale-csi-driver namespace
ibm-spectrum-scale-csi-operator.yaml
This is an auto-generated combined configuration file that starts the operator.
ibm-spectrum-scale-csi-operator-cr.yaml
This is a custom resource file (CR) that the admin must modify to match their Spectrum Scale install, which loads the csi-driver plugin.
  1. Download the .yaml files from the code repository
curl -O https://raw.githubusercontent.com/IBM/ibm-spectrum-scale-csi-operator/master/stable/ibm-spectrum-scale-csi-operator-bundle/operators/ibm-spectrum-scale-csi-operator/deploy/namespace.yaml
curl -O https://raw.githubusercontent.com/IBM/ibm-spectrum-scale-csi-operator/master/generated/installer/ibm-spectrum-scale-csi-operator.yaml
curl -O https://raw.githubusercontent.com/IBM/ibm-spectrum-scale-csi-operator/master/stable/ibm-spectrum-scale-csi-operator-bundle/operators/ibm-spectrum-scale-csi-operator/deploy/crds/ibm-spectrum-scale-csi-operator-cr.yaml
  1. Apply the namespace and operator configuration files.
kubectl apply -f namespace.yaml
kubectl apply -f ibm-spectrum-scale-csi-operator.yaml
  1. Create and apply the secret for the Spectrum Scale GUI.

Create a file secret.json with the following, replacing the name|username|password fields.

{
    "apiVersion": "v1",
    "kind": "List",
    "items":
    [{
        "kind": "Secret",
        "apiVersion": "v1",
        "metadata": {
            "name": "{{ gui_secret_name }}",
            "label": {
                "app.kubernetes.io/name": "ibm-spectrum-scale-csi-operator"
            }
        },
        "data": {
            "username": "{{ gui_user | b64encode }}",
            "password": "{{ gui_pass | b64encode }}"
        }
    }]
}

Then apply with the following command:

kubectl apply -f secret.json
  1. Edit and apply the ibm-spectrum-scale-csi-operator-cr.yaml file to start the csi-driver plugin.
# Modify this file to match your environment properties
kubectl apply -f ibm-spectrum-scale-csi-operator-cr.yaml