How do i can expose an UDP port or a UDP port range?

Hi,

I tried to expose udp port using:

    ports:
      - 32768:32768/udp

But this seems to create an ingress for tcp.
What I was missing ?

Thanks for your help,
Michel.

Hi @mpromonet !

UDP and TCP ports are not currently supported in Okteto.

You can use port forwarding for this. This post has information on that.

Hi @ramiro

Thanks but port forwarding allow me (because I have the kubeconfig credentials) to forward UDP port, this is not what I liked to do. I am trying to expose a webrtc service and allow access through exposed service. This was working in the past without specific configuration, but doesnot works now.

Best Regards,
Michel.

Could you share more on your configuration? Are you using a docker compose file? Where are you running the service?

Hi @ramiro,

Sure.
I am deploying using webrtc-streamer/docker-compose.yml at master ยท mpromonet/webrtc-streamer (github.com), it is running on WebRTC Streamer (okteto.net)

Best Regards,
Michel.