apiVersion: v1 kind: Service metadata: name: {{ .Release.Name }}-db spec: type: ClusterIP ports: - port: {{ .Values.db.service.port | int }} targetPort: 5432 selector: app: {{ .Release.Name }}-db