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>
This commit is contained in:
@ -6,7 +6,12 @@ metadata:
|
||||
{{- 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 }}
|
||||
|
Reference in New Issue
Block a user