fix(gitserver): correct health probe port path in k8s template
This commit is contained in:
parent
a4dd25304c
commit
fd232354cc
@ -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 }}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user