mirror of
https://gitea.com/gitea/helm-chart.git
synced 2024-07-04 23:34:12 +02:00
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 }}
|
{{- end }}
|
||||||
ports:
|
ports:
|
||||||
- name: ssh
|
- name: ssh
|
||||||
containerPort: {{ .Values.service.ssh.port }}
|
containerPort: 22
|
||||||
- name: http
|
- name: http
|
||||||
containerPort: {{ .Values.service.http.port }}
|
containerPort: 3000
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
tcpSocket:
|
tcpSocket:
|
||||||
port: http
|
port: http
|
||||||
|
@ -9,6 +9,10 @@ metadata:
|
|||||||
heritage: "{{ .Release.Service }}"
|
heritage: "{{ .Release.Service }}"
|
||||||
spec:
|
spec:
|
||||||
type: {{ .Values.service.ssh.serviceType }}
|
type: {{ .Values.service.ssh.serviceType }}
|
||||||
|
{{- with .Values.service.ssh.externalIPs }}
|
||||||
|
externalIPs:
|
||||||
|
{{ toYaml . | indent 2 | trim }}
|
||||||
|
{{- end }}
|
||||||
ports:
|
ports:
|
||||||
- name: ssh
|
- name: ssh
|
||||||
port: {{ .Values.service.ssh.port }}
|
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
|
## If serving on a different external port used for determining the ssh url in the gui
|
||||||
externalPort: 8022
|
externalPort: 8022
|
||||||
externalHost: gitea.local
|
externalHost: gitea.local
|
||||||
|
externalIPs: []
|
||||||
|
|
||||||
## Configure resource requests and limits
|
## Configure resource requests and limits
|
||||||
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
|
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
|
||||||
|
Loading…
Reference in New Issue
Block a user