apiVersion: v1 kind: Service metadata: name: {{ include "thermo.fullname" . }}-postgres labels: {{- include "thermo.labels" . | nindent 4 }} spec: type: ClusterIP selector: {{- include "thermo.postgresSelectorLabels" . | nindent 4 }} ports: - name: postgres port: 5432 targetPort: postgres