[ci skip] Reduce healthcheck frequency to 8h, fix apiserver audit duplication bug

Change cluster-healthcheck CronJob from every 30min to every 8h.
Replace fragile sed-based audit config in apiserver manifest with
idempotent Python script that deduplicates by name/mountPath,
preventing the duplicate volume entries that crashed the API server.
This commit is contained in:
Viktor Barzin 2026-02-22 23:18:30 +00:00
parent 27dc486a4d
commit ddb293b2b7
2 changed files with 50 additions and 9 deletions

View file

@ -539,7 +539,7 @@ resource "kubernetes_cron_job_v1" "cluster_healthcheck" {
}
}
spec {
schedule = "*/30 * * * *"
schedule = "0 */8 * * *"
concurrency_policy = "Forbid"
failed_jobs_history_limit = 3
successful_jobs_history_limit = 3