mirror of
https://github.com/wahyd4/charts.git
synced 2026-08-17 17:16:30 +10:00
* [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>
26 lines
927 B
YAML
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
|