Hey Jihoon,
good that you raise it, networking is still quite open.
In theory you can already use libvirt's capabilities for VM network management.
I.e. you can use a local bridge to connect VMs to your LAN.
But we aim a little higher and would like to connect VMs to Kubernetes
networks - or said differently: To inherit the same network
connectivity as pods have.
Kubernets networks? Multiple? Yes, today there is just the default NIC.
But there are proposals to enable multiple networks for pods, and in
addition is also at least one CNI plugin which allows connecting
mutiple networks to a pod (multus).
But having multiple NICs does not solve networking right away, as the
current networking also involves IPAM, which is a little problematic
with pet VMs.
In our case, we would like to give the VMs the power to configure
their IP addresses and ranges. To allow this, we will need L2
connectivity between them - whic his currently not in scope of
kubernetes netwroking.
However, part of the multiple NIC proposal is also to define networks
which don't have IPAM, but cover L2 connectivity only. And that is
what we strive for, and what will help us to connect VMs.
There are now a few ways of how this can be implemented on the KubeVirt side.
And this dicussion has not seen to much attention lately.
But I see attractive ways:
Let VMs inheirt pod connectivity, and bind VMs to the NICs of a pod.
This would allow us to offload the complete NIC wiring to the kubelet
and thus CNI. The gap would be to allow KubeVirt to connect a VM to
the NICs of a pod.
The other way is to bypass kubelet's/CNI capabilities to attach
networks, and use libvirt to connect to the right ones. This would
mean we could specify Kube networks in VM specificatiosn, and KubeVirt
would take care to connect a VM to the correct network.
But the obvious and big problem here is that KubeVirt needs to
reimplement parts of kubelet's network logic to wire up VMs.
Both areas need a little research to make some progress.
A third area is to allow the VMs to "inherit IPAM" - this is yeat
another area of research.
Despite all this thoughts - What are your requirements on networking Jihoon?
- fabian
> --
> You received this message because you are subscribed to the Google Groups
> "kubevirt-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
kubevirt-dev...@googlegroups.com.
> To post to this group, send email to
kubevi...@googlegroups.com.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/kubevirt-dev/5dabbb9b-764d-4063-b0df-78270ca0ff90%40googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.