Skip to content

satoru-takeuchi/rook-helper

Repository files navigation

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

supported software versions

  • rook: v1.13.2 or later
  • minikube: v1.6.24 or later

Usage

Prerequisite

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.

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

About

A simple Rook cluster constructor for testing

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages