Skip to content

Operator to install and maintain the IBM PowerVS Block CSI driver on an openshift cluster

License

Notifications You must be signed in to change notification settings

openshift/ibm-powervs-block-csi-driver-operator

Repository files navigation

IBM PowerVS Block CSI Driver Operator

An operator to deploy the IBM PowerVS Block CSI Driver in OKD.

This operator is installed by the cluster-storage-operator.

Quick start

Before running the operator manually, you must remove the operator installed by CSO/CVO

# Scale down CVO and CSO
oc scale --replicas=0 deploy/cluster-version-operator -n openshift-cluster-version
oc scale --replicas=0 deploy/cluster-storage-operator -n openshift-cluster-storage-operator

# Delete operator resources (daemonset, deployments)
oc -n openshift-cluster-csi-drivers delete deployment.apps/powervs-block-csi-driver-operator deployment.apps/ibm-powervs-block-csi-driver-controller daemonset.apps/ibm-powervs-block-csi-driver-node

Define custom endpoints for the CSI driver:

Include a serviceEndpoints section to configure non-default endpoints, which is defined under v1_Infrastructure

For example:

   serviceEndpoints:
    - name: ResourceController
      url: https://resource-controller.test.cloud.ibm.com

Reference:

IAM - IBMCLOUD_IAM_API_ENDPOINT
ResourceController - IBMCLOUD_RESOURCE_CONTROLLER_ENDPOINT
Power - IBMCLOUD_POWER_API_ENDPOINT

The above-mentioned set of serviceEndpoints are the only allowed properties. The rest are ignored.

To build and run the operator locally:

# Create only the resources the operator needs to run via CLI
oc apply -f https://raw.githubusercontent.com/openshift/cluster-storage-operator/master/assets/csidriveroperators/powervs-block/07_cr.yaml

# Build the operator
make

# Set the environment variables
export DRIVER_IMAGE=gcr.io/k8s-staging-cloud-provider-ibm/ibm-powervs-block-csi-driver:v0.1.0-alpha.3
export PROVISIONER_IMAGE=k8s.gcr.io/sig-storage/csi-provisioner:v3.1.0
export ATTACHER_IMAGE=k8s.gcr.io/sig-storage/csi-attacher:v3.4.0
export RESIZER_IMAGE=k8s.gcr.io/sig-storage/csi-resizer:v1.4.0
export NODE_DRIVER_REGISTRAR_IMAGE=k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.5.0
export LIVENESS_PROBE_IMAGE=k8s.gcr.io/sig-storage/livenessprobe:v2.6.0
export KUBE_RBAC_PROXY_IMAGE=quay.io/brancz/kube-rbac-proxy:v0.12.0

# Run the operator via CLI
./ibm-powervs-block-csi-driver-operator start --kubeconfig $KUBECONFIG --namespace openshift-cluster-csi-drivers

About

Operator to install and maintain the IBM PowerVS Block CSI driver on an openshift cluster

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 22