apiVersion: v1
kind: Service
metadata:
  name: postgres
  labels:
    app: postgres
spec:
  type: NodePort
  ports:
   - port: 5432
     protocol: TCP
     targetPort: 5432
     nodePort: 32578
  selector:
   app: postgres
