From c9ad7d7babc60c26e1f39e46780b16f98f972e6f Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Fri, 7 Feb 2025 15:54:14 +0100 Subject: [PATCH] Add liveness to overlay --- backups/overlays/test/xrootd/backup-cronjob.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backups/overlays/test/xrootd/backup-cronjob.yaml b/backups/overlays/test/xrootd/backup-cronjob.yaml index 477cf23..e53d751 100644 --- a/backups/overlays/test/xrootd/backup-cronjob.yaml +++ b/backups/overlays/test/xrootd/backup-cronjob.yaml @@ -38,3 +38,6 @@ spec: secretKeyRef: name: xrootd-secret key: "source-secret-access-key" + livenessProbe: + exec: + command: ["bash", "-c", "if test -f /backup_ipc/stop; then umount /backup_storage; exit 1; fi;"]