Reputation: 15194
I have a server that is receiving multicast messages on a network interface called "em2".
I need to get the information coming over into my pods running in minikube so I can use it in an application which I am writing. How would I go about doing this?
The network interfaces shown in minikube ssh
are: docker0, eth0, eth1, lo, and two "veth"
Thank you!
Upvotes: 1
Views: 906
Reputation: 1810
There are a few ways to achieve traffic towards Kubernetes pod(s):
Adding hostNetwork: true
flag to the yaml file along with hostPort
configuration in order to receive the traffic directly to the pod.
The multus-cni project allows the creation of additional interfaces for your pods (your default one won't accept multicast). Then you will need to bridge the new interface with the em2 interface in your host machine, either by using bridge or macvlan
You could use some firewall (e.g. iptables
, ipfw
, nftables
, etc.) to forward the traffic from the em2 interface to the internal K8 network
Upvotes: 3