From 15a8eb4cba3ecba3a68144a1d71ca69283fa4a11 Mon Sep 17 00:00:00 2001 From: Allan Roger Reid Date: Thu, 15 Dec 2022 01:23:02 -0800 Subject: [PATCH] Enable configuration of startupProbe in containers created using Helm (#1370) --- helm/tenant/templates/tenant.yaml | 4 ++++ helm/tenant/values.yaml | 3 +++ 2 files changed, 7 insertions(+) diff --git a/helm/tenant/templates/tenant.yaml b/helm/tenant/templates/tenant.yaml index c533362c051..b4675ad205b 100644 --- a/helm/tenant/templates/tenant.yaml +++ b/helm/tenant/templates/tenant.yaml @@ -120,6 +120,10 @@ spec: liveness: {{- toYaml . | nindent 4 }} {{- end }} + {{- with (dig "startup" (dict) .) }} + startup: + {{- toYaml . | nindent 4 }} + {{- end }} {{- with (dig "exposeServices" (dict) .) }} exposeServices: {{- toYaml . | nindent 4 }} diff --git a/helm/tenant/values.yaml b/helm/tenant/values.yaml index 9326a4574a2..3fd0e62c485 100644 --- a/helm/tenant/values.yaml +++ b/helm/tenant/values.yaml @@ -105,6 +105,9 @@ tenant: # Readiness Probe for container readiness. Container will be removed from service endpoints if the probe fails. # Refer https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/ readiness: { } + # Startup Probe for container startup. Container will be restarted if the probe fails. + # Refer https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/ + startup: { } ## exposeServices defines the exposure of the MinIO object storage and Console services. ## service is exposed as a loadbalancer in k8s service. exposeServices: { }