1 {{- if .Values.replication.enabled }}
5 name: {{ template "postgresql.fullname" . }}-read
7 app: {{ template "postgresql.name" . }}
8 chart: {{ template "postgresql.chart" . }}
9 release: {{ .Release.Name | quote }}
10 heritage: {{ .Release.Service | quote }}
11 {{- with .Values.service.annotations }}
13 {{ toYaml . | indent 4 }}
16 type: {{ .Values.service.type }}
17 {{- if and .Values.service.loadBalancerIP (eq .Values.service.type "LoadBalancer") }}
18 loadBalancerIP: {{ .Values.service.loadBalancerIP }}
21 - name: tcp-postgresql
22 port: {{ template "postgresql.port" . }}
23 targetPort: tcp-postgresql
24 {{- if .Values.service.nodePort }}
25 nodePort: {{ .Values.service.nodePort }}
28 app: {{ template "postgresql.name" . }}
29 release: {{ .Release.Name | quote }}