fix(openebs): enable reclaim policy for openebs-single sc

This commit is contained in:
SeanOMik 2024-09-20 18:49:06 -04:00
parent 4929d9a087
commit 9065539a86
Signed by: SeanOMik
GPG Key ID: FEC9E2FC15235964
3 changed files with 16 additions and 4 deletions

View File

@ -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"

View File

@ -2,4 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./pool.yaml
- ./single-replica-sc.yaml
- ./dual-replica-sc.yaml

View File

@ -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