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 fd1e3d1839
commit 03d6be4260
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863
2 changed files with 4 additions and 2 deletions

View file

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

Binary file not shown.