Explorar el Código

Add liveness and readiness checks to pihole

Breandan Dezendorf hace 2 años
padre
commit
7af13e7888
Se han modificado 1 ficheros con 10 adiciones y 1 borrados
  1. 10 1
      dezendorf/homelab/k3s/pihole/pihole.yaml

+ 10 - 1
dezendorf/homelab/k3s/pihole/pihole.yaml

@@ -35,6 +35,15 @@ spec:
       containers:
       containers:
         - name: pihole
         - name: pihole
           image: 'pihole/pihole:latest'
           image: 'pihole/pihole:latest'
+          readinessProbe:
+            httpGet:
+              path: /admin/
+              port: 80
+            initialDelaySeconds: 20
+          livenessProbe:
+            tcpSocket:
+              port: 53
+            initialDelaySeconds: 20
           ports:
           ports:
             - name: dns-udp
             - name: dns-udp
               containerPort: 53
               containerPort: 53
@@ -262,4 +271,4 @@ data:
     expand-hosts
     expand-hosts
     bogus-priv
     bogus-priv
     except-interface=nonexisting
     except-interface=nonexisting
-     
+