From 10307fde4508539dc131767ca00eef02c42ea701 Mon Sep 17 00:00:00 2001 From: Justin Scott Date: Fri, 9 Aug 2019 10:06:17 -0700 Subject: [PATCH] Use directories instead of partitions for rook Signed-off-by: Justin Scott --- .../7-rook/overlays/v1.0.3/kustomization.yaml | 5 ++++- .../7-rook/overlays/v1.0.3/patch_cephcluster.yaml | 9 +++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 clr-k8s-examples/7-rook/overlays/v1.0.3/patch_cephcluster.yaml diff --git a/clr-k8s-examples/7-rook/overlays/v1.0.3/kustomization.yaml b/clr-k8s-examples/7-rook/overlays/v1.0.3/kustomization.yaml index 20ee54e..a7fdd47 100644 --- a/clr-k8s-examples/7-rook/overlays/v1.0.3/kustomization.yaml +++ b/clr-k8s-examples/7-rook/overlays/v1.0.3/kustomization.yaml @@ -5,4 +5,7 @@ resources: - rook/cluster/examples/kubernetes/ceph/storageclass.yaml patchesStrategicMerge: - - patch_operator.yaml \ No newline at end of file + - patch_operator.yaml + # 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.0.3/patch_cephcluster.yaml b/clr-k8s-examples/7-rook/overlays/v1.0.3/patch_cephcluster.yaml new file mode 100644 index 0000000..194933a --- /dev/null +++ b/clr-k8s-examples/7-rook/overlays/v1.0.3/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