A helper script to run the integration test of Rook and launch arbitrary Rook cluster.
- v1.17.6
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
Delete the Rook operator.
./operator-fini.sh
Delete the K8s cluster.
./k8s-cluster-fini.sh