---
apiVersion: v1
kind: Service
metadata:
  name: postgres
  labels:
    app: postgres
spec:
  type: NodePort
  ports:
    - name: tcp-pg
      port: 5432
      targetPort: tcp-pg
      nodePort: 31432
  selector:
    app: postgres
    role: master
