From db8a52bef84360f736c102c1e082d2603a0f9b53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antti=20Lepp=C3=A4?= Date: Wed, 17 Apr 2024 09:46:29 +0300 Subject: [PATCH] Added new probes for auth service --- .../auth/templates/auth-deployment.yaml | 48 +++++++++++-------- .../charts/auth/values.yaml | 6 ++- 2 files changed, 32 insertions(+), 22 deletions(-) diff --git a/charts/transport-management/charts/auth/templates/auth-deployment.yaml b/charts/transport-management/charts/auth/templates/auth-deployment.yaml index b95a266..1097a31 100644 --- a/charts/transport-management/charts/auth/templates/auth-deployment.yaml +++ b/charts/transport-management/charts/auth/templates/auth-deployment.yaml @@ -49,23 +49,31 @@ spec: requests: cpu: {{ .Values.resources.requests.cpu }} memory: {{ .Values.resources.requests.memory }} - livenessProbe: - failureThreshold: {{ .Values.livenessProbe.failureThreshold }} - httpGet: - path: / - port: 8080 - scheme: HTTP - initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }} - periodSeconds: {{ .Values.livenessProbe.periodSeconds }} - successThreshold: {{ .Values.livenessProbe.successThreshold }} - timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }} - readinessProbe: - failureThreshold: {{ .Values.readinessProbe.failureThreshold }} - httpGet: - path: / - port: 8080 - scheme: HTTP - initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }} - periodSeconds: {{ .Values.readinessProbe.periodSeconds }} - successThreshold: {{ .Values.readinessProbe.successThreshold }} - timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }} + + startupProbe: + httpGet: + path: /health/started + port: 8080 + scheme: HTTP + periodSeconds: {{ .Values.startupProbe.periodSeconds }} + failureThreshold: {{ .Values.startupProbe.failureThreshold }} + + livenessProbe: + failureThreshold: {{ .Values.livenessProbe.failureThreshold }} + httpGet: + path: /health + port: 8080 + scheme: HTTP + periodSeconds: {{ .Values.livenessProbe.periodSeconds }} + successThreshold: {{ .Values.livenessProbe.successThreshold }} + timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }} + + readinessProbe: + failureThreshold: {{ .Values.readinessProbe.failureThreshold }} + httpGet: + path: /health/ready + port: 8080 + scheme: HTTP + periodSeconds: {{ .Values.readinessProbe.periodSeconds }} + successThreshold: {{ .Values.readinessProbe.successThreshold }} + timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }} \ No newline at end of file diff --git a/charts/transport-management/charts/auth/values.yaml b/charts/transport-management/charts/auth/values.yaml index 0cb5c81..ba45c1a 100644 --- a/charts/transport-management/charts/auth/values.yaml +++ b/charts/transport-management/charts/auth/values.yaml @@ -13,16 +13,18 @@ resources: cpu: 250m memory: 512Mi +startupProbe: + failureTreshold: 30 + periodSeconds: 10 + livenessProbe: failureTreshold: 3 - initialDelaySeconds: 240 periodSeconds: 10 successThreshold: 1 timeoutSeconds: 30 readinessProbe: failureTreshold: 3 - initialDelaySeconds: 240 periodSeconds: 10 successThreshold: 1 timeoutSeconds: 30