Browse Source

Fix SAPL media velero backup

master
Fábio Kaiser Rauber 3 years ago
parent
commit
23a2e7c684
  1. 13
      charts/sapl/v0.2.0/templates/deployment.yaml
  2. 2
      charts/sapl/v0.2.0/templates/velero-schedule-monthly.yaml
  3. 2
      charts/sapl/v0.2.0/templates/velero-schedule-weekdays.yaml
  4. 2
      charts/sapl/v0.2.0/templates/velero-schedule-weekly.yaml

13
charts/sapl/v0.2.0/templates/deployment.yaml

@ -27,6 +27,19 @@ spec:
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
containers:
{{- if .Values.velero.backup.enabled }}
- name: {{ .Chart.Name}}-fsfreeze
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
securityContext:
privileged: true
volumeMounts:
- mountPath: /var/interlegis/sapl/media
name: media
command:
- "/bin/bash"
- "-c"
- "sleep infinity"
{{- end }}
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}

2
charts/sapl/v0.2.0/templates/velero-schedule-monthly.yaml

@ -28,6 +28,7 @@ spec:
{{- include "sapl.selectorLabels" . | nindent 12 }}
pre:
- exec:
container: {{ .Chart.Name }}-fsfreeze
command:
- /sbin/fsfreeze
- --freeze
@ -35,6 +36,7 @@ spec:
timeout: 10s
post:
- exec:
container: {{ .Chart.Name }}-fsfreeze
command:
- /sbin/fsfreeze
- --unfreeze

2
charts/sapl/v0.2.0/templates/velero-schedule-weekdays.yaml

@ -28,6 +28,7 @@ spec:
{{- include "sapl.selectorLabels" . | nindent 12 }}
pre:
- exec:
container: {{ .Chart.Name }}-fsfreeze
command:
- /sbin/fsfreeze
- --freeze
@ -35,6 +36,7 @@ spec:
timeout: 10s
post:
- exec:
container: {{ .Chart.Name }}-fsfreeze
command:
- /sbin/fsfreeze
- --unfreeze

2
charts/sapl/v0.2.0/templates/velero-schedule-weekly.yaml

@ -28,6 +28,7 @@ spec:
{{- include "sapl.selectorLabels" . | nindent 12 }}
pre:
- exec:
container: {{ .Chart.Name }}-fsfreeze
command:
- /sbin/fsfreeze
- --freeze
@ -35,6 +36,7 @@ spec:
timeout: 10s
post:
- exec:
container: {{ .Chart.Name }}-fsfreeze
command:
- /sbin/fsfreeze
- --unfreeze

Loading…
Cancel
Save