GithubHelp home page GithubHelp logo

jsafrane / ibm-vpc-block-csi-driver-operator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openshift/ibm-vpc-block-csi-driver-operator

0.0 2.0 0.0 22.03 MB

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

License: Apache License 2.0

Dockerfile 2.35% Makefile 4.82% Go 92.83%

ibm-vpc-block-csi-driver-operator's Introduction

ibm-vpc-block-csi-driver-operator

An operator to deploy the IBM VPC Block CSI Driver.

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

Quick start

Before running the operator manually, you must remove the operator installed by 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/ibm-vpc-block-csi-driver-operator deployment.apps/ibm-vpc-block-csi-controller daemonset.apps/ibm-vpc-block-csi-node

Follow below steps to add node labels

# Get worker id 
curl -X GET "https://<region>.iaas.cloud.ibm.com/v1/instances?version=2021-11-23&generation=2&name=<node-name>" -H "Authorization: $iam_token"
# Add node labels 
kubectl label nodes <node-name>  "ibm-cloud.kubernetes.io/worker-id"=<worker-id>

To build and run the operator locally:

# Create only the resources the operator needs to run via CLI
oc apply -f manifests/09_cr.yaml

# Build the operator
make 

# Set the environment variables
export DRIVER_IMAGE=gcr.io/k8s-staging-cloud-provider-ibm/ibm-vpc-block-csi-driver:master
export PROVISIONER_IMAGE=k8s.gcr.io/sig-storage/csi-provisioner:v2.2.2
export ATTACHER_IMAGE=k8s.gcr.io/sig-storage/csi-attacher:v3.2.1
export NODE_DRIVER_REGISTRAR_IMAGE=k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.2.0
export LIVENESS_PROBE_IMAGE=k8s.gcr.io/sig-storage/livenessprobe:v2.3.0
export RESIZER_IMAGE=k8s.gcr.io/sig-storage/csi-resizer:v1.2.0
export NODE_LABEL_IMAGE=icr.io/obs/storage/vpc-node-label-updater:v1.0.1

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

ibm-vpc-block-csi-driver-operator's People

Contributors

openshift-merge-robot avatar dobsonj avatar gayathrimenath-ibm avatar jsafrane avatar akgunjal avatar mpatlasov avatar bertinatto avatar romanbednar avatar openshift-ci[bot] avatar sameshai avatar derek-pryor avatar ambiknai avatar cjschaef avatar arahamad-zz avatar dgoodwin avatar coverprice avatar phaow avatar stevemar avatar tsmetana avatar sandaymin123 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.