apiVersion: v1
kind: Service
metadata:
  labels:
    run: db
  name: postgres-svc
  namespace: default
spec:
  ports:
  - port: 5432
    protocol: TCP
    targetPort: 5432
  selector:
    run: db
  sessionAffinity: None
  type: ClusterIP
