Skip to content

Commit f6cbfe7

Browse files
committed
perf: add readiness and health probes
1 parent 8ccf757 commit f6cbfe7

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

cmd/kar-controllers/app/server.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,4 @@ func listenHealthProbe(opt *options.ServerOption) error {
8686

8787
return nil
8888
}
89+

deployment/mcad-controller/templates/deployment.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,18 @@ spec:
357357
- name: agent-config-vol
358358
mountPath: /root/kubernetes
359359
#{{ end }}
360+
livenessProbe:
361+
httpGet:
362+
path: /healthz
363+
port: 8081
364+
periodSeconds: 5
365+
timeoutSeconds: 5
366+
readinessProbe:
367+
httpGet:
368+
path: /healthz
369+
port: 8081
370+
periodSeconds: 5
371+
timeoutSeconds: 5
360372
#{{ if .Values.configMap.name }}
361373
envFrom:
362374
- configMapRef:

0 commit comments

Comments
 (0)