fix(etcd): add protective limits to defrag CronJob

Without concurrencyPolicy and job limits, the defrag CronJob can
accumulate hundreds of running/failed pods during cluster upgrades
when etcd is temporarily unavailable. This was observed after
upgrading to v1.1.2 where defrag jobs piled up across tenants.

Assisted-By: Claude AI
Signed-off-by: Kirill Ilin <stitch14@yandex.ru>
(cherry picked from commit ed8ba3beec)
This commit is contained in:
Kirill Ilin 2026-03-17 13:21:28 +05:00 committed by github-actions[bot]
parent ea641f7ec7
commit 6017dabaee

View file

@ -4,9 +4,14 @@ metadata:
name: {{ .Release.Name }}-defrag
spec:
schedule: "0 * * * *"
concurrencyPolicy: Forbid
startingDeadlineSeconds: 300
successfulJobsHistoryLimit: 3
failedJobsHistoryLimit: 1
jobTemplate:
spec:
activeDeadlineSeconds: 1800
backoffLimit: 2
template:
spec:
containers: