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

@ -12,6 +12,8 @@ resource "kubernetes_cron_job_v1" "update-public-ip" {
} }
spec { spec {
schedule = "*/5 * * * *" schedule = "*/5 * * * *"
successful_jobs_history_limit = 1
failed_jobs_history_limit = 1
concurrency_policy = "Forbid" concurrency_policy = "Forbid"
job_template { job_template {
metadata { metadata {