Use controller-runtime health probe for liveness

Signed-off-by: Hidde Beydals <hello@hidde.co>
This commit is contained in:
Hidde Beydals 2021-02-01 14:48:37 +01:00
parent 3fd74bb938
commit c665907540
1 changed files with 4 additions and 2 deletions

View File

@ -30,6 +30,8 @@ spec:
name: http name: http
- containerPort: 8080 - containerPort: 8080
name: http-prom name: http-prom
- containerPort: 9440
name: healthz
env: env:
- name: RUNTIME_NAMESPACE - name: RUNTIME_NAMESPACE
valueFrom: valueFrom:
@ -44,8 +46,8 @@ spec:
- --storage-adv-addr=source-controller.$(RUNTIME_NAMESPACE).svc.cluster.local. - --storage-adv-addr=source-controller.$(RUNTIME_NAMESPACE).svc.cluster.local.
livenessProbe: livenessProbe:
httpGet: httpGet:
port: http port: healthz
path: / path: /healthz
readinessProbe: readinessProbe:
httpGet: httpGet:
port: http port: http