From 7e20dc51412cc253f6cf0aa46fd5fb1cf4917f97 Mon Sep 17 00:00:00 2001 From: lingyuguo <30824318+lingyuguo@users.noreply.github.com> Date: Mon, 22 Apr 2024 10:38:32 +0800 Subject: [PATCH] Update dongtai-worker-sca.yaml --- .../helm/templates/deployments/dongtai-worker-sca.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/deploy/kubernetes/helm/templates/deployments/dongtai-worker-sca.yaml b/deploy/kubernetes/helm/templates/deployments/dongtai-worker-sca.yaml index 2434747b..17372fca 100644 --- a/deploy/kubernetes/helm/templates/deployments/dongtai-worker-sca.yaml +++ b/deploy/kubernetes/helm/templates/deployments/dongtai-worker-sca.yaml @@ -40,8 +40,14 @@ spec: env: - name: DONGTAI_CONCURRENCY value: {{.Values.build.env_sca}} + {{- if .Values.httphealthcheck }} + - name: HTTP_HEALTH_CHECK_PORT + value: "1234" + {{- end }} {{- include "deploy.config" . | nindent 10 }} - {{- if .Values.healthcheck }} + {{- if .Values.tcphealthcheck }} {{- include "deploy.Probe" . | nindent 10 }} + {{- else if .Values.httphealthcheck }} + {{- include "deploy.HttpProbe" . | nindent 10 }} {{- end }} - {{- include "deploy.config.vo" . | nindent 6 }} \ No newline at end of file + {{- include "deploy.config.vo" . | nindent 6 }}