mirror of
https://gitea.com/gitea/helm-chart.git
synced 2024-08-23 15:14:19 +02:00
This PR adds some options for the http service: - loadBalancerIP - nodePort - externalTrafficPolicy - externalIPs Also updated the README and values.yml with the values. Added storageClass explanation in README and empty value in values.yml Fixes: #162 Co-authored-by: Lucas Hahn <lucas.hahn@novum-rgi.de> Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/167 Reviewed-by: techknowlogick <techknowlogick@gitea.io> Reviewed-by: 6543 <6543@obermui.de> Co-authored-by: luhahn <luhahn@noreply.gitea.io> Co-committed-by: luhahn <luhahn@noreply.gitea.io>
39 lines
1.3 KiB
YAML
39 lines
1.3 KiB
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "gitea.fullname" . }}-http
|
|
labels:
|
|
{{- include "gitea.labels" . | nindent 4 }}
|
|
annotations:
|
|
{{- toYaml .Values.service.http.annotations | 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 .Values.service.http.loadBalancerSourceRanges }}
|
|
loadBalancerSourceRanges:
|
|
{{- range .Values.service.http.loadBalancerSourceRanges }}
|
|
- {{ . }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- if .Values.service.http.externalIPs }}
|
|
externalIPs:
|
|
{{- toYaml .Values.service.http.externalIPs | nindent 4 }}
|
|
{{- end }}
|
|
{{- if .Values.service.http.externalTrafficPolicy }}
|
|
externalTrafficPolicy: {{ .Values.service.http.externalTrafficPolicy }}
|
|
{{- end }}
|
|
{{- if and .Values.service.http.clusterIP (eq .Values.service.http.type "ClusterIP") }}
|
|
clusterIP: {{ .Values.service.http.clusterIP }}
|
|
{{- 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 }}
|