From e99ec90ef336955bd826e6dea2c892dd8b006012 Mon Sep 17 00:00:00 2001 From: "Chang, Hui-Tang" Date: Fri, 12 Apr 2024 19:02:41 +0800 Subject: [PATCH] chore(helm): add initialDelaySeconds for deployment --- charts/core/templates/api-gateway/deployment.yaml | 2 ++ charts/core/templates/console/deployment.yaml | 2 ++ charts/core/templates/mgmt-backend/deployment.yaml | 2 ++ charts/core/templates/model-backend/deployment.yaml | 2 ++ charts/core/templates/pipeline-backend/deployment.yaml | 2 ++ charts/core/templates/registry/deployment.yaml | 2 ++ 6 files changed, 12 insertions(+) diff --git a/charts/core/templates/api-gateway/deployment.yaml b/charts/core/templates/api-gateway/deployment.yaml index 56dc84dd..6fa4d083 100644 --- a/charts/core/templates/api-gateway/deployment.yaml +++ b/charts/core/templates/api-gateway/deployment.yaml @@ -96,12 +96,14 @@ spec: scheme: {{ upper (ternary "https" "http" .Values.apiGateway.tls.enabled) }} port: {{ ternary "https" "http" .Values.apiGateway.tls.enabled }} periodSeconds: 10 + initialDelaySeconds: 60 livenessProbe: httpGet: path: /__health scheme: {{ upper (ternary "https" "http" .Values.apiGateway.tls.enabled) }} port: {{ ternary "https" "http" .Values.apiGateway.tls.enabled }} periodSeconds: 10 + initialDelaySeconds: 60 {{- if .Values.apiGateway.resources }} resources: {{- toYaml .Values.apiGateway.resources | nindent 12 }} diff --git a/charts/core/templates/console/deployment.yaml b/charts/core/templates/console/deployment.yaml index f67df9d4..36ee6bf0 100644 --- a/charts/core/templates/console/deployment.yaml +++ b/charts/core/templates/console/deployment.yaml @@ -62,12 +62,14 @@ spec: scheme: {{ ternary "https" "http" .Values.internalTLS.enabled | upper }} port: {{ ternary "https" "http" .Values.internalTLS.enabled }} periodSeconds: 10 + initialDelaySeconds: 60 livenessProbe: httpGet: path: /api/health scheme: {{ ternary "https" "http" .Values.internalTLS.enabled | upper }} port: {{ ternary "https" "http" .Values.internalTLS.enabled }} periodSeconds: 10 + initialDelaySeconds: 60 {{- if .Values.console.resources }} resources: {{- toYaml .Values.console.resources | nindent 12 }} diff --git a/charts/core/templates/mgmt-backend/deployment.yaml b/charts/core/templates/mgmt-backend/deployment.yaml index cc09ddef..7077ad6c 100644 --- a/charts/core/templates/mgmt-backend/deployment.yaml +++ b/charts/core/templates/mgmt-backend/deployment.yaml @@ -117,12 +117,14 @@ spec: scheme: {{ ternary "https" "http" .Values.internalTLS.enabled | upper }} port: {{ ternary "https" "http" .Values.internalTLS.enabled }}-public periodSeconds: 10 + initialDelaySeconds: 60 livenessProbe: httpGet: path: /v1beta/__liveness scheme: {{ ternary "https" "http" .Values.internalTLS.enabled | upper }} port: {{ ternary "https" "http" .Values.internalTLS.enabled }}-public periodSeconds: 10 + initialDelaySeconds: 60 {{- if .Values.mgmtBackend.resources }} resources: {{- toYaml .Values.mgmtBackend.resources | nindent 12 }} diff --git a/charts/core/templates/model-backend/deployment.yaml b/charts/core/templates/model-backend/deployment.yaml index 18766b69..118c0daa 100644 --- a/charts/core/templates/model-backend/deployment.yaml +++ b/charts/core/templates/model-backend/deployment.yaml @@ -168,12 +168,14 @@ spec: scheme: {{ ternary "https" "http" .Values.internalTLS.enabled | upper }} port: {{ ternary "https" "http" .Values.internalTLS.enabled }}-public periodSeconds: 10 + initialDelaySeconds: 60 livenessProbe: httpGet: path: /v1alpha/__liveness scheme: {{ ternary "https" "http" .Values.internalTLS.enabled | upper }} port: {{ ternary "https" "http" .Values.internalTLS.enabled }}-public periodSeconds: 10 + initialDelaySeconds: 60 {{- if .Values.modelBackend.resources }} resources: {{- toYaml .Values.modelBackend.resources | nindent 12 }} diff --git a/charts/core/templates/pipeline-backend/deployment.yaml b/charts/core/templates/pipeline-backend/deployment.yaml index 86e7262e..714fd576 100644 --- a/charts/core/templates/pipeline-backend/deployment.yaml +++ b/charts/core/templates/pipeline-backend/deployment.yaml @@ -204,12 +204,14 @@ spec: scheme: {{ ternary "https" "http" .Values.internalTLS.enabled | upper }} port: {{ ternary "https" "http" .Values.internalTLS.enabled }}-public periodSeconds: 10 + initialDelaySeconds: 60 livenessProbe: httpGet: path: /v1beta/__liveness scheme: {{ ternary "https" "http" .Values.internalTLS.enabled | upper }} port: {{ ternary "https" "http" .Values.internalTLS.enabled }}-public periodSeconds: 10 + initialDelaySeconds: 60 {{- if .Values.pipelineBackend.containers.pipelineBackend.resources }} resources: {{- toYaml .Values.pipelineBackend.containers.pipelineBackend.resources | nindent 12 }} diff --git a/charts/core/templates/registry/deployment.yaml b/charts/core/templates/registry/deployment.yaml index 63f1e625..f34e3475 100644 --- a/charts/core/templates/registry/deployment.yaml +++ b/charts/core/templates/registry/deployment.yaml @@ -74,12 +74,14 @@ spec: scheme: {{ ternary "https" "http" .Values.internalTLS.enabled | upper }} port: {{ template "core.registry.port" . }} periodSeconds: 10 + initialDelaySeconds: 60 livenessProbe: httpGet: path: / scheme: {{ ternary "https" "http" .Values.internalTLS.enabled | upper }} port: {{ template "core.registry.port" . }} periodSeconds: 10 + initialDelaySeconds: 60 {{- if .Values.registry.resources }} resources: {{- toYaml .Values.registry.resources | nindent 12 }}