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 }}