Browse Source

Add liveness and readiness checks to pihole

Breandan Dezendorf 2 năm trước cách đây
mục cha
commit
7af13e7888
1 tập tin đã thay đổi với 10 bổ sung1 xóa
  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
-     
+