diff --git a/clr-k8s-examples/7-rook/overlays/v1.1.0/kustomization.yaml b/clr-k8s-examples/7-rook/overlays/v1.1.0/kustomization.yaml new file mode 100644 index 0000000..6b0fe1c --- /dev/null +++ b/clr-k8s-examples/7-rook/overlays/v1.1.0/kustomization.yaml @@ -0,0 +1,10 @@ +resources: + - rook/cluster/examples/kubernetes/ceph/common.yaml + - rook/cluster/examples/kubernetes/ceph/operator.yaml + - rook/cluster/examples/kubernetes/ceph/cluster.yaml + - rook/cluster/examples/kubernetes/ceph/csi/rbd/storageclass.yaml + +patchesStrategicMerge: + # patches rook to use 'directories' instead of partitions. + # comment out to use partitions + - patch_cephcluster.yaml \ No newline at end of file diff --git a/clr-k8s-examples/7-rook/overlays/v1.1.0/patch_cephcluster.yaml b/clr-k8s-examples/7-rook/overlays/v1.1.0/patch_cephcluster.yaml new file mode 100644 index 0000000..194933a --- /dev/null +++ b/clr-k8s-examples/7-rook/overlays/v1.1.0/patch_cephcluster.yaml @@ -0,0 +1,9 @@ +apiVersion: ceph.rook.io/v1 +kind: CephCluster +metadata: + name: rook-ceph + namespace: rook-ceph +spec: + storage: + directories: + - path: /var/lib/rook \ No newline at end of file diff --git a/clr-k8s-examples/create_stack.sh b/clr-k8s-examples/create_stack.sh index 3d50d6e..77a2bc0 100755 --- a/clr-k8s-examples/create_stack.sh +++ b/clr-k8s-examples/create_stack.sh @@ -10,6 +10,8 @@ SCRIPT_DIR="$(dirname "${BASH_SOURCE[0]}")" : ${MASTER_IP:=} HIGH_POD_COUNT=${HIGH_POD_COUNT:-""} +ROOK_VER="${CLRK8S_ROOK_VER:-v1.1.0}" + function print_usage_exit() { exit_code=${1:-0} cat <