Browse Source

Do not use fsfreeze, was taking SAPLs offline

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

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

@ -27,19 +27,6 @@ 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 }}

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

@ -20,28 +20,6 @@ spec:
defaultVolumesToRestic: {{ .Values.velero.backup.defaultVolumesToRestic }}
hooks:
resources:
- name: fsfreeze
includedResources:
- pods
labelSelector:
matchLabels:
{{- include "sapl.selectorLabels" . | nindent 12 }}
pre:
- exec:
container: {{ .Chart.Name }}-fsfreeze
command:
- /sbin/fsfreeze
- --freeze
- /var/interlegis/sapl/media
timeout: 10s
post:
- exec:
container: {{ .Chart.Name }}-fsfreeze
command:
- /sbin/fsfreeze
- --unfreeze
- /var/interlegis/sapl/media
timeout: 10s
- name: pgdump
includedResources:
- pods

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

@ -20,28 +20,6 @@ spec:
defaultVolumesToRestic: {{ .Values.velero.backup.defaultVolumesToRestic }}
hooks:
resources:
- name: fsfreeze
includedResources:
- pods
labelSelector:
matchLabels:
{{- include "sapl.selectorLabels" . | nindent 12 }}
pre:
- exec:
container: {{ .Chart.Name }}-fsfreeze
command:
- /sbin/fsfreeze
- --freeze
- /var/interlegis/sapl/media
timeout: 10s
post:
- exec:
container: {{ .Chart.Name }}-fsfreeze
command:
- /sbin/fsfreeze
- --unfreeze
- /var/interlegis/sapl/media
timeout: 10s
- name: pgdump
includedResources:
- pods

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

@ -20,28 +20,6 @@ spec:
defaultVolumesToRestic: {{ .Values.velero.backup.defaultVolumesToRestic }}
hooks:
resources:
- name: fsfreeze
includedResources:
- pods
labelSelector:
matchLabels:
{{- include "sapl.selectorLabels" . | nindent 12 }}
pre:
- exec:
container: {{ .Chart.Name }}-fsfreeze
command:
- /sbin/fsfreeze
- --freeze
- /var/interlegis/sapl/media
timeout: 10s
post:
- exec:
container: {{ .Chart.Name }}-fsfreeze
command:
- /sbin/fsfreeze
- --unfreeze
- /var/interlegis/sapl/media
timeout: 10s
- name: pgdump
includedResources:
- pods

Loading…
Cancel
Save