Skip to content

Commit cc6e404

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

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-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: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,20 @@ spec:
357357
- name: agent-config-vol
358358
mountPath: /root/kubernetes
359359
#{{ end }}
360+
livenessProbe:
361+
httpGet:
362+
path: /healthz
363+
port: 8081
364+
initialDelaySeconds: 20
365+
periodSeconds: 5
366+
timeoutSeconds: 5
367+
readinessProbe:
368+
httpGet:
369+
path: /readyz
370+
port: 8081
371+
initialDelaySeconds: 20
372+
periodSeconds: 5
373+
timeoutSeconds: 5
360374
#{{ if .Values.configMap.name }}
361375
envFrom:
362376
- configMapRef:

0 commit comments

Comments
 (0)