Fix issue with pod port exposition and add the possibility to use externalIPs
This commit is contained in:
parent
cb32886d8b
commit
7dd51abffb
@ -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
|
||||
|
@ -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 }}
|
||||
|
@ -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/
|
||||
|
Loading…
x
Reference in New Issue
Block a user