Add pvc for signald data.
All checks were successful
ci/woodpecker/push/mautrix-signal Pipeline was successful
All checks were successful
ci/woodpecker/push/mautrix-signal Pipeline was successful
This commit is contained in:
parent
cde7bd9c09
commit
aa7b13271a
3 changed files with 27 additions and 1 deletions
|
@ -80,6 +80,13 @@ spec:
|
|||
volumes:
|
||||
- name: mainconfig
|
||||
secret:
|
||||
secretName: {{ include "mautrix-facebook.fullname" . }}
|
||||
secretName: {{ include "mautrix-signal.fullname" . }}
|
||||
- name: signald-socket
|
||||
emptyDir: {}
|
||||
- name: signald-data
|
||||
persistentVolumeClaim:
|
||||
{{- if not .Values.signald.pvc.existingClaim }}
|
||||
claimName: {{ include "mautrix-signal.fullname" . }}-storage
|
||||
{{- else }}
|
||||
claimName: {{ .Values.signald.pvc.existingClaim }}
|
||||
{{- end }}
|
||||
|
|
15
charts/mautrix-signal/templates/pvc.yaml
Normal file
15
charts/mautrix-signal/templates/pvc.yaml
Normal file
|
@ -0,0 +1,15 @@
|
|||
{{- if not .Values.signald.pvc.existingClaim -}}
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: {{ include "mautrix-signal.fullname" . }}-signald-data
|
||||
labels:
|
||||
{{- include "mautrix-signal.labels" . | nindent 4 }}
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
storageClassName: {{ .Values.signald.pvc.storageClassName | quote }}
|
||||
resources:
|
||||
requests:
|
||||
storage: {{ .Values.signald.pvc.storage | quote }}
|
||||
{{- end }}
|
|
@ -64,3 +64,7 @@ signald:
|
|||
tag: "0.23.2"
|
||||
config: {}
|
||||
# database: ""
|
||||
pvc:
|
||||
storageClassName: ""
|
||||
existingClaim: false
|
||||
storage: 5Gi
|
||||
|
|
Loading…
Reference in a new issue