From fd232354cccd28f5e8d3c9e73b34d8f7e3dcc836 Mon Sep 17 00:00:00 2001 From: ZhenYi <434836402@qq.com> Date: Sun, 26 Apr 2026 00:11:48 +0800 Subject: [PATCH] fix(gitserver): correct health probe port path in k8s template --- deploy/templates/gitserver-deployment.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/deploy/templates/gitserver-deployment.yaml b/deploy/templates/gitserver-deployment.yaml index 6d5d103..6766748 100644 --- a/deploy/templates/gitserver-deployment.yaml +++ b/deploy/templates/gitserver-deployment.yaml @@ -45,13 +45,13 @@ spec: containerPort: {{ $svc.service.ssh.port }} protocol: TCP - name: health - containerPort: 8021 + containerPort: {{ $svc.livenessProbe.httpGet.port | default 8021 | int }} protocol: TCP {{- if $svc.livenessProbe }} livenessProbe: httpGet: - path: {{ $svc.livenessProbe.path }} - port: {{ $svc.livenessProbe.port }} + path: {{ $svc.livenessProbe.httpGet.path }} + port: health initialDelaySeconds: {{ $svc.livenessProbe.initialDelaySeconds }} periodSeconds: {{ $svc.livenessProbe.periodSeconds }} timeoutSeconds: {{ $svc.livenessProbe.timeoutSeconds | default 3 }} @@ -60,8 +60,8 @@ spec: {{- if $svc.readinessProbe }} readinessProbe: httpGet: - path: {{ $svc.readinessProbe.path }} - port: {{ $svc.readinessProbe.port }} + path: {{ $svc.readinessProbe.httpGet.path }} + port: health initialDelaySeconds: {{ $svc.readinessProbe.initialDelaySeconds }} periodSeconds: {{ $svc.readinessProbe.periodSeconds }} timeoutSeconds: {{ $svc.readinessProbe.timeoutSeconds | default 3 }}