From 4e128e2b81856d473dfad67f89e818189c646910 Mon Sep 17 00:00:00 2001 From: Rub21 Date: Tue, 4 Jun 2024 12:04:45 -0500 Subject: [PATCH] Add livenessProbe for minute replication --- .../templates/jobs/replication-job-deployment.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/osm-seed/templates/jobs/replication-job-deployment.yaml b/osm-seed/templates/jobs/replication-job-deployment.yaml index afc4ca75..e5295a78 100644 --- a/osm-seed/templates/jobs/replication-job-deployment.yaml +++ b/osm-seed/templates/jobs/replication-job-deployment.yaml @@ -22,6 +22,16 @@ spec: - name: {{ .Release.Name }}-replication-job-deployment image: {{ .Values.replicationJob.image.name }}:{{ .Values.replicationJob.image.tag }} command: ['/start.sh'] + livenessProbe: + exec: + command: + - /bin/bash + - -c + - /liveness.sh + initialDelaySeconds: 600 + timeoutSeconds: 5 + periodSeconds: 10 + failureThreshold: 3 {{- if .Values.replicationJob.resources.enabled }} resources: requests: