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:
committed by
luhahn
co-authored by
Martyn Ranyard
iMartyn
parent
4c17cc839e
commit
fc9c49179f
@@ -6,7 +6,12 @@ metadata:
|
|||||||
{{- include "gitea.labels" . | nindent 4 }}
|
{{- include "gitea.labels" . | nindent 4 }}
|
||||||
spec:
|
spec:
|
||||||
type: {{ .Values.service.http.type }}
|
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
|
clusterIP: None
|
||||||
|
{{- end }}
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
port: {{ .Values.service.http.port }}
|
port: {{ .Values.service.http.port }}
|
||||||
|
|||||||
Reference in New Issue
Block a user