From c5cc95311326a3269c8302e1e7a6f807a2451d7a Mon Sep 17 00:00:00 2001 From: anpham Date: Mon, 21 Jul 2025 02:27:32 +0000 Subject: [PATCH] Update 'hommer-deployment.yml' --- hommer-deployment.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/hommer-deployment.yml b/hommer-deployment.yml index f41e0d2..167552d 100644 --- a/hommer-deployment.yml +++ b/hommer-deployment.yml @@ -26,12 +26,20 @@ spec: initContainers: - name: git-cloner image: alpine/git:latest - command: ["git", "clone", "https://git.anpham.me/DurianLAB/Homepage-Dashboard.git", "/shared-git-data/Homepage-Dashboard"] volumeMounts: - name: git-repo-volume mountPath: /shared-git-data - + livenessProbe: + exec: + command: + - ls + - /shared-git-data/Homepage-Dashboard/.git # Check for a file/directory inside the cloned repo + initialDelaySeconds: 5 # Wait 5 seconds before the first probe + periodSeconds: 10 # Check every 10 seconds + timeoutSeconds: 5 # Probe times out after 5 seconds + failureThreshold: 3 # After 3 failed attempts, consider the container unhealthy + containers: - name: hommer image: b4bz/homer:v23.09.1