fix(gitserver): correct health probe port path in k8s template

This commit is contained in:
ZhenYi 2026-04-26 00:11:48 +08:00
parent a4dd25304c
commit fd232354cc

View File

@ -45,13 +45,13 @@ spec:
containerPort: {{ $svc.service.ssh.port }} containerPort: {{ $svc.service.ssh.port }}
protocol: TCP protocol: TCP
- name: health - name: health
containerPort: 8021 containerPort: {{ $svc.livenessProbe.httpGet.port | default 8021 | int }}
protocol: TCP protocol: TCP
{{- if $svc.livenessProbe }} {{- if $svc.livenessProbe }}
livenessProbe: livenessProbe:
httpGet: httpGet:
path: {{ $svc.livenessProbe.path }} path: {{ $svc.livenessProbe.httpGet.path }}
port: {{ $svc.livenessProbe.port }} port: health
initialDelaySeconds: {{ $svc.livenessProbe.initialDelaySeconds }} initialDelaySeconds: {{ $svc.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ $svc.livenessProbe.periodSeconds }} periodSeconds: {{ $svc.livenessProbe.periodSeconds }}
timeoutSeconds: {{ $svc.livenessProbe.timeoutSeconds | default 3 }} timeoutSeconds: {{ $svc.livenessProbe.timeoutSeconds | default 3 }}
@ -60,8 +60,8 @@ spec:
{{- if $svc.readinessProbe }} {{- if $svc.readinessProbe }}
readinessProbe: readinessProbe:
httpGet: httpGet:
path: {{ $svc.readinessProbe.path }} path: {{ $svc.readinessProbe.httpGet.path }}
port: {{ $svc.readinessProbe.port }} port: health
initialDelaySeconds: {{ $svc.readinessProbe.initialDelaySeconds }} initialDelaySeconds: {{ $svc.readinessProbe.initialDelaySeconds }}
periodSeconds: {{ $svc.readinessProbe.periodSeconds }} periodSeconds: {{ $svc.readinessProbe.periodSeconds }}
timeoutSeconds: {{ $svc.readinessProbe.timeoutSeconds | default 3 }} timeoutSeconds: {{ $svc.readinessProbe.timeoutSeconds | default 3 }}