apiVersion: v1
kind: Service
metadata: 
  labels: 
    name: postgres
    context: DevOpsDemo
  name: postgres
spec: 
  ports:
  # the port that this service should serve on
  - port: 5432
    name: postgres-port
  # label keys and values that must match in order to receive traffic for this service
  selector: 
    name: postgres