From 391314b9d6ee618dfba8e9125a4b510c828aca2c Mon Sep 17 00:00:00 2001 From: Luke Van Seters Date: Mon, 22 Nov 2021 13:51:35 -0500 Subject: [PATCH] Limit successful history instead of ttl --- k8s/mev-inspect-prices/templates/cronjob.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/k8s/mev-inspect-prices/templates/cronjob.yaml b/k8s/mev-inspect-prices/templates/cronjob.yaml index 4c982bc..1c1379b 100644 --- a/k8s/mev-inspect-prices/templates/cronjob.yaml +++ b/k8s/mev-inspect-prices/templates/cronjob.yaml @@ -3,9 +3,8 @@ kind: CronJob metadata: name: {{ include "mev-inspect-prices.fullname" . }} spec: - completions: 1 - ttlSecondsAfterFinished: 5 schedule: "*/1 * * * *" + successfulJobsHistoryLimit: 0 jobTemplate: spec: template: @@ -33,4 +32,4 @@ spec: secretKeyRef: name: mev-inspect-db-credentials key: password - restartPolicy: OnFailure + restartPolicy: Never