kind: Service
apiVersion: v1
metadata:
  name: postgres
  labels:
    app.kubernetes.io/name: postgres
    app.kubernetes.io/part-of: device-registry
spec:
 ports:
 - name: postgres
   port: 5432
   protocol: TCP
   targetPort: 5432
 selector:
   app.kubernetes.io/name: postgres
   app.kubernetes.io/part-of: device-registry
