2024-02-10 00:34:43 -05:00

16 lines
390 B
YAML

apiVersion: v1
kind: Service
metadata:
name: {{ include "postgres.fullname" . }}
labels:
{{- include "postgres.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: {{ .Values.service.port }}
protocol: TCP
name: postgres
selector:
{{- include "postgres.selectorLabels" . | nindent 4 }}