make uploads persistent
This commit is contained in:
@@ -54,11 +54,16 @@ spec:
|
|||||||
{{- toYaml . | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: storage
|
- name: config
|
||||||
mountPath: "/config/"
|
mountPath: "/config/"
|
||||||
{{- if .Values.persistence.subPath }}
|
{{- if .Values.persistence.subPath }}
|
||||||
subPath: {{ .Values.persistence.subPath }}
|
subPath: {{ .Values.persistence.subPath }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
- name: uploads
|
||||||
|
mountPath: "/var/www/html/uploads"
|
||||||
|
{{- if .Values.persistence.subPath }}
|
||||||
|
subPath: {{ .Values.persistence.subPath }}
|
||||||
|
{{- end }}
|
||||||
env:
|
env:
|
||||||
- name: LB_DB_HOST
|
- name: LB_DB_HOST
|
||||||
{{- if eq .Values.mariadb.enabled true }}
|
{{- if eq .Values.mariadb.enabled true }}
|
||||||
@@ -110,13 +115,20 @@ spec:
|
|||||||
- name: TZ
|
- name: TZ
|
||||||
value: '{{ .Values.librebooking.TZ }}'
|
value: '{{ .Values.librebooking.TZ }}'
|
||||||
volumes:
|
volumes:
|
||||||
- name: storage
|
- name: uploads
|
||||||
{{- if .Values.persistence.enabled }}
|
{{- if .Values.persistence.enabled }}
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: {{ .Values.persistence.existingClaim | default (include "librebooking.fullname" .) }}
|
claimName: {{ .Values.persistence.existingClaimUploads | default (printf "%s-uploads" (include "librebooking.fullname" .))}}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
{{- end -}}
|
{{- end }}
|
||||||
|
- name: config
|
||||||
|
{{- if .Values.persistence.enabled }}
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: {{ .Values.persistence.existingClaimConfig | default (printf "%s-config" (include "librebooking.fullname" .)) }}
|
||||||
|
{{- else }}
|
||||||
|
emptyDir: {}
|
||||||
|
{{- end }}
|
||||||
{{- range .Values.librebooking.extraVolumeMounts }}
|
{{- range .Values.librebooking.extraVolumeMounts }}
|
||||||
- name: {{ .name }}
|
- name: {{ .name }}
|
||||||
{{- if .existingClaim }}
|
{{- if .existingClaim }}
|
||||||
|
|||||||
@@ -178,7 +178,8 @@ persistence:
|
|||||||
- kubernetes.io/pvc-protection
|
- kubernetes.io/pvc-protection
|
||||||
selectorLabels: {}
|
selectorLabels: {}
|
||||||
subPath: ""
|
subPath: ""
|
||||||
existingClaim: null
|
existingClaimConfig: null
|
||||||
|
existingClaimUploads: null
|
||||||
|
|
||||||
# This section is for setting up autoscaling more information can be found here: https://kubernetes.io/docs/concepts/workloads/autoscaling/
|
# This section is for setting up autoscaling more information can be found here: https://kubernetes.io/docs/concepts/workloads/autoscaling/
|
||||||
autoscaling:
|
autoscaling:
|
||||||
|
|||||||
Reference in New Issue
Block a user