mirror of https://git.rancher.io/charts
27 lines
889 B
YAML
27 lines
889 B
YAML
|
apiVersion: v1
|
||
|
kind: ConfigMap
|
||
|
metadata:
|
||
|
name: longhorn-storageclass
|
||
|
namespace: {{ include "release_namespace" . }}
|
||
|
labels: {{- include "longhorn.labels" . | nindent 4 }}
|
||
|
data:
|
||
|
storageclass.yaml: |
|
||
|
kind: StorageClass
|
||
|
apiVersion: storage.k8s.io/v1
|
||
|
metadata:
|
||
|
name: longhorn
|
||
|
annotations:
|
||
|
storageclass.kubernetes.io/is-default-class: {{ .Values.persistence.defaultClass | quote }}
|
||
|
provisioner: driver.longhorn.io
|
||
|
allowVolumeExpansion: true
|
||
|
reclaimPolicy: "{{ .Values.persistence.reclaimPolicy }}"
|
||
|
volumeBindingMode: Immediate
|
||
|
parameters:
|
||
|
numberOfReplicas: "{{ .Values.persistence.defaultClassReplicaCount }}"
|
||
|
staleReplicaTimeout: "30"
|
||
|
fromBackup: ""
|
||
|
baseImage: ""
|
||
|
{{- if .Values.persistence.recurringJobs.enable }}
|
||
|
recurringJobs: '{{ .Values.persistence.recurringJobs.jobList }}'
|
||
|
{{- end }}
|