apiVersion: v1
kind: Service
metadata:
  name: postgres
  labels:
    app: postgres
spec:
  selector:
    role: postgres
  ports:
  - name: postgres
    port: 5432
    targetPort: 5432
  clusterIP: None
