From 9065539a86a3e99b3bc0629d497ce74ca41fcc5e Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Fri, 20 Sep 2024 18:49:06 -0400 Subject: [PATCH] fix(openebs): enable reclaim policy for openebs-single sc --- kubernetes/thin/apps/openebs/app/helm-release.yaml | 9 +++++---- .../thin/apps/openebs/storage-class/kustomization.yaml | 1 + .../apps/openebs/storage-class/single-replica-sc.yaml | 10 ++++++++++ 3 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 kubernetes/thin/apps/openebs/storage-class/single-replica-sc.yaml diff --git a/kubernetes/thin/apps/openebs/app/helm-release.yaml b/kubernetes/thin/apps/openebs/app/helm-release.yaml index b3b30b5..37c2c8e 100644 --- a/kubernetes/thin/apps/openebs/app/helm-release.yaml +++ b/kubernetes/thin/apps/openebs/app/helm-release.yaml @@ -29,6 +29,7 @@ spec: enabled: true hostpathClass: enabled: true + reclaimPolicy: Retain # Refer to https://github.com/openebs/mayastor-extensions/blob/v2.7.0/chart/values.yaml for complete set of values. mayastor: @@ -41,7 +42,9 @@ spec: initContainers: enabled: true etcd: - # -- Kubernetes Cluster Domain + localpvScConfig: + enabled: true + reclaimPolicy: Retain clusterDomain: cluster.local crds: enabled: false @@ -50,9 +53,7 @@ spec: loki-stack: enabled: false storageClass: - nameSuffix: single - reclaimPolicy: Retain - allowVolumeExpansion: true + enabled: false tolerations: # tolerate control plane - key: "node-role.kubernetes.io/control-plane" diff --git a/kubernetes/thin/apps/openebs/storage-class/kustomization.yaml b/kubernetes/thin/apps/openebs/storage-class/kustomization.yaml index 20cd2b1..8cd59be 100644 --- a/kubernetes/thin/apps/openebs/storage-class/kustomization.yaml +++ b/kubernetes/thin/apps/openebs/storage-class/kustomization.yaml @@ -2,4 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - ./pool.yaml +- ./single-replica-sc.yaml - ./dual-replica-sc.yaml \ No newline at end of file diff --git a/kubernetes/thin/apps/openebs/storage-class/single-replica-sc.yaml b/kubernetes/thin/apps/openebs/storage-class/single-replica-sc.yaml new file mode 100644 index 0000000..b72765c --- /dev/null +++ b/kubernetes/thin/apps/openebs/storage-class/single-replica-sc.yaml @@ -0,0 +1,10 @@ +apiVersion: storage.k8s.io/v1 +kind: StorageClass +metadata: + name: openebs-single +parameters: + protocol: nvmf + repl: "1" +reclaimPolicy: Retain +allowVolumeExpansion: true +provisioner: io.openebs.csi-mayastor \ No newline at end of file