Browse Source

fix: set default storageClass on demand only

pull/47/head
Stefan Reimer 6 months ago
parent
commit
64d81e995f
  1. 2
      charts/kubezero-metrics/values.yaml
  2. 4
      charts/kubezero-storage/templates/lvm-storageclass.yaml
  3. 1
      charts/kubezero-storage/values.yaml
  4. 6
      charts/kubezero/templates/storage.yaml

2
charts/kubezero-metrics/values.yaml

@ -118,7 +118,7 @@ kube-prometheus-stack:
storageSpec:
volumeClaimTemplate:
spec:
storageClassName: ebs-sc-gp3-xfs
# storageClassName: ebs-sc-gp3-xfs
accessModes: ["ReadWriteOnce"]
resources:
requests:

4
charts/kubezero-storage/templates/lvm-storageclass.yaml

@ -2,6 +2,10 @@ apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: openebs-lvm
{{- if .Values.storageClass.default }}
annotations:
storageclass.kubernetes.io/is-default-class: "true"
{{- end }}
volumeBindingMode: WaitForFirstConsumer
reclaimPolicy: Delete
parameters:

1
charts/kubezero-storage/values.yaml

@ -41,3 +41,4 @@ openebs:
storageClass:
vgpattern: ""
default: true

6
charts/kubezero/templates/storage.yaml

@ -1,4 +1,10 @@
{{- define "storage-values" }}
{{- with index .Values "cert-manager" "storageClass" }}
storageClass:
{{- . | toYaml | nindent 2 }}
{{- end }}
{{- end }}
{{- define "storage-argo" }}

Loading…
Cancel
Save