helm-charts/postgresql/templates/service.yaml

16 lines
382 B
YAML
Raw Normal View History

2023-09-26 00:12:53 +02:00
apiVersion: v1
kind: Service
metadata:
name: {{ include "postgresql.fullname" . }}
labels:
{{- include "postgresql.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: postgresql
protocol: TCP
name: postgresql
selector:
{{- include "postgresql.selectorLabels" . | nindent 4 }}