From 127dc228d994fc1b5054950a7422a8f56d1da95e Mon Sep 17 00:00:00 2001 From: Sven Ketelsen Date: Tue, 7 Jun 2022 21:54:26 +0200 Subject: [PATCH] feat: added livenessProbe and readinessProbe --- smardigo/templates/connect/deployment.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/smardigo/templates/connect/deployment.yml b/smardigo/templates/connect/deployment.yml index 561a33e..3f428d9 100644 --- a/smardigo/templates/connect/deployment.yml +++ b/smardigo/templates/connect/deployment.yml @@ -152,6 +152,25 @@ spec: ports: - containerPort: 8080 - containerPort: 8081 + livenessProbe: + httpGet: + path: /management/health/liveness + port: 8081 + # httpHeaders: + # - name: Smardigo-User-Token + # value: "" + initialDelaySeconds: 5 + periodSeconds: 5 + readinessProbe: + httpGet: + path: /management/health/readiness + port: 8081 + # httpHeaders: + # - name: Smardigo-User-Token + # value: "" + initialDelaySeconds: 5 + periodSeconds: 5 + initContainers: - name: init-iam image: busybox:1.28