keep only 1 successful and failed job for updating public ip cj [ci skip]

This commit is contained in:
Viktor Barzin 2024-01-23 21:00:16 +00:00
parent 543fca5dbb
commit 28f8000dc7

View file

@ -11,8 +11,10 @@ resource "kubernetes_cron_job_v1" "update-public-ip" {
namespace = "default" namespace = "default"
} }
spec { spec {
schedule = "*/5 * * * *" schedule = "*/5 * * * *"
concurrency_policy = "Forbid" successful_jobs_history_limit = 1
failed_jobs_history_limit = 1
concurrency_policy = "Forbid"
job_template { job_template {
metadata { metadata {
name = "update-public-ip" name = "update-public-ip"