|
@ -5,8 +5,7 @@ metadata: |
|
|
labels: |
|
|
labels: |
|
|
{{- include "mail-mta-autoconfig.labels" . | nindent 4 }} |
|
|
{{- include "mail-mta-autoconfig.labels" . | nindent 4 }} |
|
|
spec: |
|
|
spec: |
|
|
# generate a random backup time between 1 and 5 AM |
|
|
schedule: "{{ .Values.schedule }}" |
|
|
schedule: {{ .Values.schedule }} |
|
|
|
|
|
concurrencyPolicy: Forbid |
|
|
concurrencyPolicy: Forbid |
|
|
jobTemplate: |
|
|
jobTemplate: |
|
|
spec: |
|
|
spec: |
|
@ -27,7 +26,17 @@ spec: |
|
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" |
|
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" |
|
|
imagePullPolicy: {{ .Values.image.pullPolicy }} |
|
|
imagePullPolicy: {{ .Values.image.pullPolicy }} |
|
|
command: [ "python3", "watch.py" ] |
|
|
command: [ "python3", "watch.py" ] |
|
|
restartPolicy: OnFailure |
|
|
{{ if .Values.secretName }} |
|
|
|
|
|
volumeMounts: |
|
|
|
|
|
- mountPath: "/root/.env" |
|
|
|
|
|
name: envfile |
|
|
|
|
|
subPath: .env |
|
|
|
|
|
readOnly: true |
|
|
|
|
|
volumes: |
|
|
|
|
|
- name: envfile |
|
|
|
|
|
secret: |
|
|
|
|
|
secretName: {{ .Values.secretName }} |
|
|
|
|
|
{{ end }} |
|
|
{{- with .Values.nodeSelector }} |
|
|
{{- with .Values.nodeSelector }} |
|
|
nodeSelector: |
|
|
nodeSelector: |
|
|
{{- toYaml . | nindent 12 }} |
|
|
{{- toYaml . | nindent 12 }} |
|
|