Re-add lost commit: Enable LoadBalancer type service of http (#42) (#49)

Enable LoadBalancer type service of http (#42)

Enable LoadBalancer type service of http

Signed-off-by: Martyn Ranyard <[email protected]>

Co-authored-by: Martyn Ranyard <[email protected]>
Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/42
Reviewed-by: luhahn <[email protected]>
Reviewed-by: techknowlogick <[email protected]>
Co-Authored-By: iMartyn <[email protected]>
Co-Committed-By: iMartyn <[email protected]>

Co-authored-by: iMartyn <[email protected]>
Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/49
Reviewed-by: luhahn <[email protected]>
Reviewed-by: Andrew Thornton <[email protected]>
Co-Authored-By: schra <[email protected]>
Co-Committed-By: schra <[email protected]>
This commit is contained in:
schra
2020-10-21 20:38:01 +08:00
committed by luhahn
co-authored by Martyn Ranyard iMartyn
parent 4c17cc839e
commit fc9c49179f
+5
View File
@@ -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 }}