From dd4bbf3bb556c8298a57834995b0618727e208e6 Mon Sep 17 00:00:00 2001 From: ZhenYi <434836402@qq.com> Date: Wed, 15 Apr 2026 23:04:17 +0800 Subject: [PATCH] fix(k8s): add startupProbe to gitserver deployment template --- deploy/templates/gitserver-deployment.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/deploy/templates/gitserver-deployment.yaml b/deploy/templates/gitserver-deployment.yaml index 2d766cc..33fc368 100644 --- a/deploy/templates/gitserver-deployment.yaml +++ b/deploy/templates/gitserver-deployment.yaml @@ -72,6 +72,14 @@ spec: timeoutSeconds: {{ $svc.readinessProbe.timeoutSeconds }} failureThreshold: {{ $svc.readinessProbe.failureThreshold }} {{- end }} + {{- if $svc.startupProbe }} + startupProbe: + tcpSocket: + port: {{ $svc.startupProbe.tcpSocket.port }} + initialDelaySeconds: {{ $svc.startupProbe.initialDelaySeconds }} + periodSeconds: {{ $svc.startupProbe.periodSeconds }} + failureThreshold: {{ $svc.startupProbe.failureThreshold }} + {{- end }} volumeMounts: {{- if and $svc.persistence.enabled $.Values.storage.enabled }} - name: shared-data