Browse Source

Update 'hommer-deployment.yml'

master
anpham 1 week ago
parent
commit
c5cc953113
1 changed files with 10 additions and 2 deletions
  1. +10
    -2
      hommer-deployment.yml

+ 10
- 2
hommer-deployment.yml View File

@ -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


Loading…
Cancel
Save