apiVersion: v1
kind: Service
metadata:
  name: nats
  namespace: openfaas
  labels:
    app: nats
spec:
  type: ClusterIP
  ports:
    - port: 4222
      protocol: TCP
      targetPort: 4222
      name: clients
    # - port: 8222
    #   protocol: TCP
    #   targetPort: 8222
    #   name: monitoring
  selector:
    app: nats
