What are the best ways to capture multicast traffic in Kubernetes with near-host latency?

0
4
Asked By MellowBirch42 On

I need to capture multicast traffic inside Kubernetes clusters and am comparing hostNetwork, macvlan, and ipvlan. Are there other networking approaches that can provide near host-level latency? I'm also concerned about a shared platform where users can launch workloads dynamically, since assigning hostNetwork to every multicast-capable Pod may not be practical or desirable.

2 Answers

Answered By NovaCedar17 On

hostNetwork is usually the simplest option and gives you the closest behavior to the node’s network stack, with minimal added latency. A host-device setup through the CNI can also provide direct access to a physical interface, but it generally assigns that device to only one Pod at a time, so it doesn’t scale well for arbitrary user workloads.

MellowBirch42 -

That’s the main issue for us. We’re building a platform where users can start workloads dynamically, so we can’t reliably require or allocate hostNetwork whenever a workload needs multicast.

Answered By QuietLynx8 On

Take a look at Multus with a secondary network interface. In our setup, Kube-OVN provides the network and Multus attaches it as an additional CNI interface, allowing multicast-capable workloads to use a dedicated interface without putting the entire Pod on the host network.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.