apiVersion: v1
kind: Service
metadata:
  labels:
    app.kubernetes.io/name: postgresql
  name: postgresql
  namespace: warehouse
spec:
  type: LoadBalancer
  ports:
  - name: pqsql
    port: 5432
    targetPort: 5432
  - name: metrics
    port: 9187
    targetPort: 9187
  selector:
    app.kubernetes.io/name: postgresql
