Skip to content

Latest commit

 

History

History
83 lines (53 loc) · 1.21 KB

README.md

File metadata and controls

83 lines (53 loc) · 1.21 KB

A helper script to run the integration test of Rook and launch arbitrary Rook cluster.

supported Rook versions

v1.15.2 or later

Usage

Prerequisite

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.

Usage

Copy manifests from Rook source

cd rook-helper
cp -a <rook dir>/deploy/examples

Usage

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.

Cleanup

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