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 pods.
- ibm-spectrum-scale-csi-operator-cr.yaml
- This is a custom resource file (CR) that the admin must modify to match their Spectrum Scale environment, which loads the csi-driver plugin.
Create the Operator¶
- Download and extract a
.tar.gz
file from ibm-spectrum-scale-csi-operator/releases page. - Apply the namespace and operator configuration files.
kubectl apply -f namespace.yaml kubectl apply -f ibm-spectrum-scale-csi-operator.yaml
- Create and apply the secret for the Spectrum Scale GUI.
Create a file
secret.json
with the following, replacing thename|username|password
fields.{ "apiVersion": "v1", "kind": "List", "items": [{ "kind": "Secret", "apiVersion": "v1", "metadata": { "name": "<spectrum-scale-gui-secret>", "label": { "app.kubernetes.io/name": "ibm-spectrum-scale-csi-operator" } }, "data": { "username": "<base64_username>", "password": "<base64_password>" } }] }Then apply with the following command:
kubectl apply -f secret.json
- 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
Delete the Operator¶
- To remove the operator, run
delete
of the yaml files in the following order:
kubectl delete -f ibm-spectrum-scale-csi-operator-cr.yaml kubectl delete -f ibm-spectrum-scale-csi-operator.yaml kubectl delete -f namespace.yaml