Skip to content

Commit e442138

Browse files
pmigkosmoz
authored andcommitted
fix(Nextcloud): add backofflimit, to stop pod spamming
If a pod failed it would have restarted immediatly which resulted in a DOS of the postgres connections. Signed-off-by: Philip Miglinci <[email protected]>
1 parent b192a3d commit e442138

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

operator/src/main/kotlin/eu/glasskube/operator/apps/nextcloud/dependent/NextcloudCronJob.kt

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ class NextcloudCronJob : CRUDKubernetesDependentResource<CronJob, Nextcloud>(Cro
4848
schedule = "*/5 * * * *"
4949
jobTemplate {
5050
spec {
51+
backoffLimit = 1
5152
template {
5253
spec {
5354
restartPolicy = "Never"

0 commit comments

Comments
 (0)