MARIADB: Job failure policy
Added backoffLimit to exporter-create-sql-user job so that it keeps retrying to restart the pod incase of an error. Also added activeDeadlineSeconds for the pod created by this job to terminate if it does not become ready in one hour. Change-Id: Ib6214a887f959fed84108884c8d286624d2f164f
This commit is contained in:
parent
77b37ca520
commit
c7b1f8b50d
@ -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 }}
|
||||
|
@ -120,6 +120,11 @@ pod:
|
||||
memory: "1024Mi"
|
||||
cpu: "2000m"
|
||||
|
||||
jobs:
|
||||
exporter_create_sql_user:
|
||||
backoffLimit: 87600
|
||||
activeDeadlineSeconds: 3600
|
||||
|
||||
dependencies:
|
||||
dynamic:
|
||||
common:
|
||||
|
Loading…
x
Reference in New Issue
Block a user