From 051e011e8f45ae3b9b7ac297b2a2d01661fcd127 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20L=C3=B3pez=20Ruiz?= Date: Tue, 26 Mar 2024 14:09:35 +0100 Subject: [PATCH] Enable startupProbe in some containers --- chart/templates/import-api/deployment.yaml | 5 ++++- chart/templates/maps-api/deployment.yaml | 5 ++++- chart/templates/workspace-api/deployment.yaml | 3 +++ chart/values.yaml | 6 +++--- 4 files changed, 14 insertions(+), 5 deletions(-) diff --git a/chart/templates/import-api/deployment.yaml b/chart/templates/import-api/deployment.yaml index 7a0b5727..9f9cb632 100644 --- a/chart/templates/import-api/deployment.yaml +++ b/chart/templates/import-api/deployment.yaml @@ -173,8 +173,11 @@ spec: {{- if .Values.importApi.startupProbe.enabled }} startupProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.importApi.startupProbe "enabled") "context" $) | nindent 12 }} httpGet: - path: / + path: /health port: http + httpHeaders: + - name: Carto-Monitoring + value: 1 {{- else if .Values.importApi.customStartupProbe }} startupProbe: {{- include "common.tplvalues.render" (dict "value" .Values.importApi.customStartupProbe "context" $) | nindent 12 }} {{- end }} diff --git a/chart/templates/maps-api/deployment.yaml b/chart/templates/maps-api/deployment.yaml index 47ebaaec..83241d52 100644 --- a/chart/templates/maps-api/deployment.yaml +++ b/chart/templates/maps-api/deployment.yaml @@ -171,8 +171,11 @@ spec: {{- if .Values.mapsApi.startupProbe.enabled }} startupProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.mapsApi.startupProbe "enabled") "context" $) | nindent 12 }} httpGet: - path: / + path: /health port: http + httpHeaders: + - name: Carto-Monitoring + value: 1 {{- else if .Values.mapsApi.customStartupProbe }} startupProbe: {{- include "common.tplvalues.render" (dict "value" .Values.mapsApi.customStartupProbe "context" $) | nindent 12 }} {{- end }} diff --git a/chart/templates/workspace-api/deployment.yaml b/chart/templates/workspace-api/deployment.yaml index 61e594fe..8e0d1606 100644 --- a/chart/templates/workspace-api/deployment.yaml +++ b/chart/templates/workspace-api/deployment.yaml @@ -255,6 +255,9 @@ spec: httpGet: path: /health port: http + httpHeaders: + - name: Carto-Monitoring + value: 1 {{- else if .Values.workspaceApi.customStartupProbe }} startupProbe: {{- include "common.tplvalues.render" (dict "value" .Values.workspaceApi.customStartupProbe "context" $) | nindent 12 }} {{- end }} diff --git a/chart/values.yaml b/chart/values.yaml index d1a91512..2e310240 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -824,7 +824,7 @@ importApi: ## @param importApi.startupProbe.successThreshold Success threshold for startupProbe ## startupProbe: - enabled: false + enabled: true initialDelaySeconds: 10 periodSeconds: 30 timeoutSeconds: 5 @@ -1687,7 +1687,7 @@ mapsApi: ## @param mapsApi.startupProbe.successThreshold Success threshold for startupProbe ## startupProbe: - enabled: false + enabled: true initialDelaySeconds: 10 periodSeconds: 30 timeoutSeconds: 5 @@ -3672,7 +3672,7 @@ workspaceApi: ## @param workspaceApi.startupProbe.successThreshold Success threshold for startupProbe ## startupProbe: - enabled: false + enabled: true initialDelaySeconds: 10 periodSeconds: 30 timeoutSeconds: 5