From ca6b2f74a4dd3309c8e63f75836f7221f6fdf063 Mon Sep 17 00:00:00 2001 From: cnouguier Date: Mon, 7 Feb 2022 19:44:02 +0100 Subject: [PATCH] wip(thredds): added readiness/liveness probes #281 [pack] --- charts/thredds/templates/deployment.yaml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/charts/thredds/templates/deployment.yaml b/charts/thredds/templates/deployment.yaml index 3dcbfac5..04654c3d 100644 --- a/charts/thredds/templates/deployment.yaml +++ b/charts/thredds/templates/deployment.yaml @@ -39,9 +39,22 @@ spec: {{- include "common.environment.render" (dict "env" .Values.env "context" $) | indent 12 }} ports: - name: {{ include "common.names.name" . }} + containerPort: 8080 + readinessProbe: + tcpSocket: + port: {{ include "common.names.name" . }} + initialDelaySeconds: 10 + periodSeconds: 10 + livenessProbe: + httpGet: + path: thredds/catalog.html + port: {{ include "common.names.name" . }} + initialDelaySeconds: 60 + periodSeconds: 30 + resources: + {{- toYaml .Values.resources | nindent 12 }} resources: {{- toYaml .Values.resources | nindent 12 }} - containerPort: 8080 volumeMounts: {{- if and .Values.tomcatConfigMapName }} - mountPath: /usr/local/tomcat/conf/web.xml