A helper script to run the integration test of Rook and launch arbitrary Rook cluster.
- rook: v1.13.2 or later
- minikube: v1.6.24 or later
This programs is only tests in Ubuntu 22.04 environment.
The following tools should be installed.
- kubectl
- minikube
- containerd
There should be scratch devices for OSDs. By default("cluster-test.yaml"), Rook consumes all scratch devices for OSDs.
Copy manifests from Rook source
cd rook-helper
cp -a <rook dir>/deploy/examples
Deploy a K8s cluster.
./k8s-cluster-init.sh
Deploy a Rook operator.
./operator-init.sh
Deploy a Rook cluster.
./cluster-init.sh
Now you can ready to use your Rook cluster.
If you want to destroy your cluster, run the following script.
./cluster-fini.sh
Then wipe all devices used for OSDs.
./cleanup-devices <devices>
If "/dev/sdb" and "/dev/sdc" were consumed by Rook, run this script as follows.
./cleanup-devices /dev/sdb /dev/sdc
Delete the Rook operator.
./operator-fini.sh
Delete the K8s cluster.
./k8s-cluster-fini.sh