From 11a63c54ed237f00352ab79cbed3d1a4f6fe73f1 Mon Sep 17 00:00:00 2001 From: Sven Ketelsen Date: Tue, 7 Jun 2022 22:00:57 +0200 Subject: [PATCH] feat: added livenessProbe and readinessProbe --- smardigo/templates/connect/deployment.yml | 32 ++++++++++++++++------- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/smardigo/templates/connect/deployment.yml b/smardigo/templates/connect/deployment.yml index 16b4088..9e9168a 100644 --- a/smardigo/templates/connect/deployment.yml +++ b/smardigo/templates/connect/deployment.yml @@ -156,20 +156,32 @@ spec: httpGet: path: /management/health/liveness port: 8081 - # httpHeaders: - # - name: Smardigo-User-Token - # value: "" - initialDelaySeconds: 5 - periodSeconds: 5 + httpHeaders: + - name: Smardigo-User-Token + valueFrom: + secretKeyRef: + name: "connect-secrets" + key: HEALTH_CHECK_API_TOKEN + initialDelaySeconds: 3 + timeoutSeconds: 1 + periodSeconds: 3 + successThreshold: 1 + failureThreshold: 3 readinessProbe: httpGet: path: /management/health/readiness port: 8081 - # httpHeaders: - # - name: Smardigo-User-Token - # value: "" - initialDelaySeconds: 5 - periodSeconds: 5 + httpHeaders: + - name: Smardigo-User-Token + valueFrom: + secretKeyRef: + name: "connect-secrets" + key: HEALTH_CHECK_API_TOKEN + initialDelaySeconds: 3 + timeoutSeconds: 1 + periodSeconds: 3 + successThreshold: 1 + failureThreshold: 3 initContainers: - name: init-iam image: busybox:1.28