From dfbeee6754b2629afb40062553970380f0334c67 Mon Sep 17 00:00:00 2001 From: simonmicro Date: Wed, 15 Mar 2023 23:00:06 +0100 Subject: [PATCH] Added new endpoints --- charts/py-kms/templates/deployment.yaml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/charts/py-kms/templates/deployment.yaml b/charts/py-kms/templates/deployment.yaml index a4e46b4..e0c150b 100644 --- a/charts/py-kms/templates/deployment.yaml +++ b/charts/py-kms/templates/deployment.yaml @@ -45,14 +45,17 @@ spec: - name: http containerPort: 8080 protocol: TCP + startupProbe: + httpGet: + port: http + path: /readyz + failureThreshold: 30 # 30 seconds seem to be enough under heavy workloads + periodSeconds: 1 livenessProbe: httpGet: - path: / - port: http - readinessProbe: - httpGet: - path: / + path: /livez port: http + periodSeconds: 20 resources: {{- toYaml .Values.resources | nindent 12 }} {{- with .Values.nodeSelector }}