2826258cfc
Improve ldap settings with helper function Allow clusterIP for http service to be set, default to None Use imagePullSecrets in statefulset now Update default values Update README Bump Chart version Co-authored-by: luhahn <lucas.hahn@novum-rgi.de> Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/87 Reviewed-by: lafriks <lafriks@noreply.gitea.io> Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Co-Authored-By: luhahn <luhahn@noreply.gitea.io> Co-Committed-By: luhahn <luhahn@noreply.gitea.io>
26 lines
896 B
YAML
26 lines
896 B
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 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 }}
|