Closed maximehyh closed 2 years ago
Hi @maximehyh ! We think your problem would probably be better served by the reference CNI plugin maintainers who may have more in depth knowledge for macvlan in windows: https://github.com/containernetworking/plugins/issues
Ok Thanks
Hi,
I am trying to setup a K8s cluster on a Windows host using
multipass
andmicrok8s
(https://multipass.run/docs/installing-on-windows). The goal is for my pod to connect to a camera that uses the GigE protocol and (to summarize) requires that my pod has "full access" to the camera network.I used to do this on Docker Swarm on Linux using MacVLANs on a physical network interface but I would like to do the same thing on a windows machine. The tricky thing is that my Kubernetes now runs in a VM as opposed to my Swarm cluster that was running (directly) on a Linux host.
Multipass (through Hyper-V) allows to make a virtual interface in order to bridge the VM to the network (See
network=bridge
https://multipass.run/docs/launch-command). Which gives me an interface with the same DHCP IP as the (windows) host, and that I can ping/reach from outside.I figured that I could use this same interface to use as a
master
in myNetworkAttachmentDefinition
in order to make a MacVlan in Kubernetes. I successfully built the network, pods connected to the newly created network can ping each other using the provided IP, but I cannot succeed to ping those pods either from the multipass VM, from the windows host, and of course from another machine on the network.Is there a way to build a MacVLAN using a virtual interface? And have you seen any cases of people trying to build a MacVLAN in a VM on Windows?
Below my
NetworkAttachmentDefinition
.Thanks!
VM Network:
Windows interfaces