Skip to content

Commit 5795d13

Browse files
committed
Add health probes and remove load balancer annotations in dns-dual-protocol example.
1 parent 5a76f1c commit 5795d13

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

examples/dns-dual-protocol.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,14 @@ spec:
6565
- containerPort: 53
6666
protocol: TCP
6767
name: dns-tcp
68+
livenessProbe:
69+
httpGet:
70+
path: /health
71+
port: 8080
72+
readinessProbe:
73+
httpGet:
74+
path: /ready
75+
port: 8181
6876
volumes:
6977
- name: config
7078
configMap:
@@ -73,9 +81,6 @@ spec:
7381
apiVersion: v1
7482
kind: Service
7583
metadata:
76-
annotations:
77-
k8s.cloudscale.ch/loadbalancer-health-monitor-delay-s: "3"
78-
k8s.cloudscale.ch/loadbalancer-health-monitor-timeout-s: "2"
7984
labels:
8085
app: dns-server
8186
name: dns-server

0 commit comments

Comments
 (0)