Merge "MARIADB: Job failure policy"

This commit is contained in:
Zuul 2019-03-18 18:18:14 +00:00 committed by Gerrit Code Review
commit 3d9838a10d
2 changed files with 7 additions and 0 deletions

View File

@ -25,6 +25,7 @@ kind: Job
metadata:
name: exporter-create-sql-user
spec:
backoffLimit: {{ .Values.jobs.exporter_create_sql_user.backoffLimit }}
template:
metadata:
labels:
@ -32,6 +33,7 @@ spec:
spec:
shareProcessNamespace: true
serviceAccountName: {{ $serviceAccountName }}
activeDeadlineSeconds: {{ .Values.jobs.exporter_create_sql_user.activeDeadlineSeconds }}
restartPolicy: OnFailure
nodeSelector:
{{ .Values.labels.prometheus_mysql_exporter.node_selector_key }}: {{ .Values.labels.prometheus_mysql_exporter.node_selector_value }}

View File

@ -120,6 +120,11 @@ pod:
memory: "1024Mi"
cpu: "2000m"
jobs:
exporter_create_sql_user:
backoffLimit: 87600
activeDeadlineSeconds: 3600
dependencies:
dynamic:
common: