From bd6ac270e6846754c6bf5d912cb5e12e0e6b089b Mon Sep 17 00:00:00 2001 From: Justin Scott Date: Thu, 19 Sep 2019 09:40:56 -0700 Subject: [PATCH] Update to rook v1.1.0 (#169) Update to rook v1.1.0 which has CSI support by default. Closes #30 Signed-off-by: Justin Scott --- .../7-rook/overlays/v1.1.0/kustomization.yaml | 10 ++++++ .../overlays/v1.1.0/patch_cephcluster.yaml | 9 +++++ clr-k8s-examples/create_stack.sh | 34 ++++++++++++------- clr-k8s-examples/hack/ceph_status.sh | 3 ++ 4 files changed, 43 insertions(+), 13 deletions(-) create mode 100644 clr-k8s-examples/7-rook/overlays/v1.1.0/kustomization.yaml create mode 100644 clr-k8s-examples/7-rook/overlays/v1.1.0/patch_cephcluster.yaml create mode 100644 clr-k8s-examples/hack/ceph_status.sh 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 <