mirror of
https://gitea.com/gitea/helm-chart.git
synced 2024-07-04 23:34:12 +02:00
fc9c49179f
Enable LoadBalancer type service of http (#42) Enable LoadBalancer type service of http Signed-off-by: Martyn Ranyard <m@rtyn.berlin> Co-authored-by: Martyn Ranyard <m@rtyn.berlin> Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/42 Reviewed-by: luhahn <luhahn@noreply.gitea.io> Reviewed-by: techknowlogick <techknowlogick@gitea.io> Co-Authored-By: iMartyn <imartyn@noreply.gitea.io> Co-Committed-By: iMartyn <imartyn@noreply.gitea.io> Co-authored-by: iMartyn <imartyn@noreply.gitea.io> Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/49 Reviewed-by: luhahn <luhahn@noreply.gitea.io> Reviewed-by: Andrew Thornton <art27@cantab.net> Co-Authored-By: schra <schra@noreply.gitea.io> Co-Committed-By: schra <schra@noreply.gitea.io>
24 lines
748 B
YAML
24 lines
748 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "gitea.fullname" . }}-http
|
|
labels:
|
|
{{- include "gitea.labels" . | nindent 4 }}
|
|
spec:
|
|
type: {{ .Values.service.http.type }}
|
|
{{- if and .Values.service.http.loadBalancerIP (eq .Values.service.http.type "LoadBalancer") }}
|
|
loadBalancerIP: {{ .Values.service.http.loadBalancerIP }}
|
|
{{- end }}
|
|
{{ if eq .Values.service.http.type "ClusterIP" }}
|
|
clusterIP: None
|
|
{{- end }}
|
|
ports:
|
|
- name: http
|
|
port: {{ .Values.service.http.port }}
|
|
{{- if .Values.service.http.nodePort }}
|
|
nodePort: {{ .Values.service.http.nodePort }}
|
|
{{- end }}
|
|
targetPort: {{ .Values.gitea.config.server.HTTP_PORT }}
|
|
selector:
|
|
{{- include "gitea.selectorLabels" . | nindent 4 }}
|