Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
  • Loading branch information
satoru-takeuchi committed Oct 4, 2024
1 parent b7c5b38 commit 830e6f9
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
A helper script to run the integration test of Rook and launch arbitrary Rook cluster.

# supported software versions
# supported Rook versions

- rook: v1.13.2 or later
- minikube: v1.6.24 or later
v1.15.2 or later

# Usage

## Prerequisite

This programs is only tests in Ubuntu 22.04 environment.
This programs is only tests in Ubuntu 24.04 environment.

The following tools should be installed.

- kubectl
- minikube
- containerd
- 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.

Expand Down
6 changes: 3 additions & 3 deletions cluster-fini.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ kubectl -n rook-ceph patch cephcluster my-cluster --type merge -p '{"spec":{"cle
kubectl delete -f $OPERATOR_DIR/toolbox.yaml
kubectl delete -f $CLUSTER_CR

sudo rm -rf /var/lib/rook
ls /dev/mapper/ceph-* | xargs -I% -- sudo dmsetup remove %
sudo rm -rf /dev/mapper/ceph-*
minikube ssh -- sudo rm -rf /var/lib/rook
minikube ssh -- bash -c "ls /dev/mapper/ceph-* | xargs -I% -- sudo dmsetup remove %"
minikube ssh -- sudo rm -rf /dev/mapper/ceph-*
4 changes: 2 additions & 2 deletions config.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export OPERATOR_DIR=deploy/examples
export CLUSTER_CR=samples/cluster-on-host.yaml
export OPERATOR_DIR=<your-rook-path>/deploy/examples
export CLUSTER_CR=samples/cluster-on-pvc.yaml
2 changes: 1 addition & 1 deletion k8s-cluster-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

. config.sh

minikube start --driver=none --container-runtime=containerd
minikube start --driver=kvm2 --extra-disks 2
6 changes: 3 additions & 3 deletions samples/cluster-on-host.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
spec:
dataDirHostPath: /var/lib/rook
cephVersion:
image: quay.io/ceph/ceph:v18.2.1
image: quay.io/ceph/ceph:v18.2.4
allowUnsupported: true
mon:
count: 1
Expand All @@ -22,9 +22,9 @@ spec:
useAllNodes: false
useAllDevices: false
nodes:
- name: coffee
- name: minikube
devices:
- name: /dev/sdb
- name: /dev/vdb
monitoring:
enabled: false
healthCheck:
Expand Down
6 changes: 3 additions & 3 deletions samples/cluster-on-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ spec:
persistentVolumeReclaimPolicy: Retain
volumeMode: Block
local:
path: /dev/sdb
path: /dev/vdb
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- coffee # Please change this to your node
- minikube
---
apiVersion: ceph.rook.io/v1
kind: CephCluster
Expand All @@ -41,7 +41,7 @@ spec:
count: 1
allowMultiplePerNode: false
cephVersion:
image: quay.io/ceph/ceph:v18.2.1
image: quay.io/ceph/ceph:v18.2.4
allowUnsupported: false
skipUpgradeChecks: false
continueUpgradeAfterChecksEvenIfNotHealthy: false
Expand Down

0 comments on commit 830e6f9

Please sign in to comment.