Add simple helm chart

This commit is contained in:
phk-nord 2024-04-24 14:47:58 +02:00
parent 91f214819a
commit 0938675fc2
No known key found for this signature in database
GPG key ID: 1277CF175F6918C5
15 changed files with 909 additions and 0 deletions

18
helm/templates/pvc.yaml Normal file
View file

@ -0,0 +1,18 @@
{{- if .Values.persistence.enabled }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: maubot-data
labels:
{{ include "maubot.labels" . | indent 4 }}
annotations:
spec:
accessModes:
{{- range .Values.persistence.accessModes }}
- {{ . | quote }}
{{- end }}
resources:
requests:
storage: {{ .Values.persistence.size | quote }}
storageClassName: {{ default "longhorn" .Values.persistence.storageClassName }}
{{- end }}