fix: set default storageClass on demand only
This commit is contained in:
parent
2cf5d62ecc
commit
b17a9a6949
@ -118,7 +118,7 @@ kube-prometheus-stack:
|
||||
storageSpec:
|
||||
volumeClaimTemplate:
|
||||
spec:
|
||||
storageClassName: ebs-sc-gp3-xfs
|
||||
# storageClassName: ebs-sc-gp3-xfs
|
||||
accessModes: ["ReadWriteOnce"]
|
||||
resources:
|
||||
requests:
|
||||
|
@ -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:
|
||||
|
@ -41,3 +41,4 @@ openebs:
|
||||
|
||||
storageClass:
|
||||
vgpattern: ""
|
||||
default: true
|
||||
|
@ -1,4 +1,10 @@
|
||||
{{- define "storage-values" }}
|
||||
|
||||
{{- with index .Values "cert-manager" "storageClass" }}
|
||||
storageClass:
|
||||
{{- . | toYaml | nindent 2 }}
|
||||
{{- end }}
|
||||
|
||||
{{- end }}
|
||||
|
||||
{{- define "storage-argo" }}
|
||||
|
Loading…
Reference in New Issue
Block a user