4 name: {{ template "postgresql.fullname" . }}
6 app: {{ template "postgresql.name" . }}
7 chart: {{ template "postgresql.chart" . }}
8 release: {{ .Release.Name | quote }}
9 heritage: {{ .Release.Service | quote }}
10 {{- with .Values.service.annotations }}
12 {{ tpl (toYaml .) $ | indent 4 }}
15 type: {{ .Values.service.type }}
16 {{- if and .Values.service.loadBalancerIP (eq .Values.service.type "LoadBalancer") }}
17 loadBalancerIP: {{ .Values.service.loadBalancerIP }}
19 {{- if and (eq .Values.service.type "LoadBalancer") .Values.service.loadBalancerSourceRanges }}
20 loadBalancerSourceRanges:
21 {{ with .Values.service.loadBalancerSourceRanges }}
22 {{ toYaml . | indent 4 }}
25 {{- if and (eq .Values.service.type "ClusterIP") .Values.service.clusterIP }}
26 clusterIP: {{ .Values.service.clusterIP }}
29 - name: tcp-postgresql
30 port: {{ template "postgresql.port" . }}
31 targetPort: tcp-postgresql
32 {{- if .Values.service.nodePort }}
33 nodePort: {{ .Values.service.nodePort }}
36 app: {{ template "postgresql.name" . }}
37 release: {{ .Release.Name | quote }}