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

Merged
schra merged 1 commits from re-add-lost-commit into master 2020-10-21 12:38:01 +00:00

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 }}