Преглед на файлове

Add liveness and readiness checks to pihole

Breandan Dezendorf преди 2 години
родител
ревизия
7af13e7888
променени са 1 файла, в които са добавени 10 реда и са изтрити 1 реда
  1. 10 1
      dezendorf/homelab/k3s/pihole/pihole.yaml

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

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