-
Docker | For macOS or Windows install Docker Desktop
-
(Optional) stern
Run the following to have the plugin deployed into a local cluster
make cluster-up
make deploy
Make
targets are added to allow doing common operational tasks. Run make help
to see all options.
-
Once the pre-requisites are met, you can create the local Kubernetes cluster using
make cluster-up
-
Using any of these methods, once the cluster is created, verify the cluster is running using
kubectl get nodes
-
You should see an output similar to
NAME STATUS ROLES AGE VERSION kind-control-plane Ready control-plane 64s v1.27.3
To delete the local cluster, run
make cluster-down
-
To build the image
# with the defaults - `ghcr.io/mbtamuli/csi-quickstart/emptydirclone:latest` make docker-build
Note: You can change the image name or tag as follows, which also works with
docker-push
,kind-load
anddeploy
targets# setting the image name - `myimage:latest` make docker-build IMG=myimage # setting the image name and tag - `myimage:1.0.0` make docker-build IMG=myimage TAG=1.0.0
-
To push the image
make docker-push
-
To load the image locally into the cluster created in Setup Cluster
make kind-load
-
To deploy the manifests
make deploy