A helper script to run the integration test of Rook and launch arbitrary Rook cluster.
v1.15.2 or later
This programs is only tests in Ubuntu 24.04 environment.
The following tools should be installed.
- kubectl
- minikube: v1.7.24 or later
- libvirt0
- qemu-system-x86
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