From b4a7c9d7b0f1764f38c1bbbf9822208df4a9140f Mon Sep 17 00:00:00 2001 From: RomanDvorsky <36188474+RomanDvorsky@users.noreply.github.com> Date: Mon, 13 May 2024 14:38:11 +0200 Subject: [PATCH] feat: add startup probe (#281) --- helm-charts/azure-api-management-gateway/README.md | 1 + .../azure-api-management-gateway/templates/deployment.yaml | 2 ++ helm-charts/azure-api-management-gateway/values.yaml | 4 ++++ 3 files changed, 7 insertions(+) diff --git a/helm-charts/azure-api-management-gateway/README.md b/helm-charts/azure-api-management-gateway/README.md index 1c379e1..5ed91f3 100644 --- a/helm-charts/azure-api-management-gateway/README.md +++ b/helm-charts/azure-api-management-gateway/README.md @@ -150,6 +150,7 @@ their default values. | `resources` | Pod resource requests & limits | `{}` | | `probes.readiness` | Configuration for readiness probes of the container | Uses `/status-0123456789abcdef` as endpoint for HTTP probes | | `probes.liveness` | Configuration for liveness probes of the container | Uses `/status-0123456789abcdef` as endpoint for HTTP probes | +| `probes.startup` | Configuration for startup probes of the container | Uses `/status-0123456789abcdef` as endpoint for HTTP probes | | `securityContext` | Privilege and access control settings for the container | `{}` | | `podSecurityContext` | Privilege and access control settings for the pod | `{}` | diff --git a/helm-charts/azure-api-management-gateway/templates/deployment.yaml b/helm-charts/azure-api-management-gateway/templates/deployment.yaml index 92a10b7..e4f6221 100644 --- a/helm-charts/azure-api-management-gateway/templates/deployment.yaml +++ b/helm-charts/azure-api-management-gateway/templates/deployment.yaml @@ -125,6 +125,8 @@ spec: {{- toYaml .Values.probes.readiness | nindent 12 }} livenessProbe: {{- toYaml .Values.probes.liveness | nindent 12 }} + startupProbe: + {{- toYaml .Values.probes.startup | nindent 12 }} resources: {{- toYaml .Values.resources | nindent 12 }} {{- with .Values.securityContext }} diff --git a/helm-charts/azure-api-management-gateway/values.yaml b/helm-charts/azure-api-management-gateway/values.yaml index 3f6e332..984c035 100644 --- a/helm-charts/azure-api-management-gateway/values.yaml +++ b/helm-charts/azure-api-management-gateway/values.yaml @@ -152,6 +152,10 @@ probes: httpGet: path: /status-0123456789abcdef port: http + startup: + httpGet: + path: /status-0123456789abcdef + port: http resources: {} # We usually recommend not to specify default resources and to leave this as a conscious