Fix issue with pod port exposition and add the possibility to use externalIPs

This commit is contained in:
Jacques ROUSSEL 2020-03-26 15:07:53 +01:00 committed by Charlie Drage
parent cb32886d8b
commit 7dd51abffb
3 changed files with 7 additions and 2 deletions

View File

@ -18,9 +18,9 @@ Create helm partial for gitea server
{{- end }}
ports:
- name: ssh
containerPort: {{ .Values.service.ssh.port }}
containerPort: 22
- name: http
containerPort: {{ .Values.service.http.port }}
containerPort: 3000
livenessProbe:
tcpSocket:
port: http

View File

@ -9,6 +9,10 @@ metadata:
heritage: "{{ .Release.Service }}"
spec:
type: {{ .Values.service.ssh.serviceType }}
{{- with .Values.service.ssh.externalIPs }}
externalIPs:
{{ toYaml . | indent 2 | trim }}
{{- end }}
ports:
- name: ssh
port: {{ .Values.service.ssh.port }}

View File

@ -96,6 +96,7 @@ service:
## If serving on a different external port used for determining the ssh url in the gui
externalPort: 8022
externalHost: gitea.local
externalIPs: []
## Configure resource requests and limits
## ref: http://kubernetes.io/docs/user-guide/compute-resources/