Files
charts/bitnami/postgresql-ha/templates/postgresql/service.yaml
T
digihunchandGitHub dd28dccabf [bitnami/postgresql-ha] Add Service port name in Traffic Exposure parameters and bring README.md up to date (#9015)
* [bitnami/postgresql-ha] Add service port name customization (#8999)

Signed-off-by: Yi Lu <ylu@digihunch.com>

* [bitnami/postgresql-ha] Bring README.md up-to-date and bump chart version.

Signed-off-by: Yi Lu <ylu@digihunch.com>

* [bitnami/postgresql-ha] remove trailing space from values.yaml

Signed-off-by: Yi Lu <ylu@digihunch.com>
2022-02-15 09:47:08 +01:00

26 lines
927 B
YAML

apiVersion: v1
kind: Service
metadata:
name: {{ include "postgresql-ha.postgresql" . }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
app.kubernetes.io/component: postgresql
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.service.serviceLabels }}
{{ toYaml .Values.postgresql.serviceLabels | indent 4 }}
{{- end }}
{{- if .Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
spec:
type: ClusterIP
ports:
- name: {{ .Values.service.portName }}
port: {{ .Values.service.port }}
targetPort: postgresql
protocol: TCP
selector: {{- include "common.labels.matchLabels" . | nindent 4 }}
app.kubernetes.io/component: postgresql