apiVersion: v1
kind: Service
metadata:
  name: mosquitto
spec:
  selector:
    app: mosquitto
  ports:
    - name: mqtt
      protocol: TCP
      port: 1883
      targetPort: 1883

    - name: websocket
      protocol: TCP
      port: 9001
      targetPort: 9001
      nodePort: 32767
  type: NodePort

