smartxworks / virtink

Lightweight Virtualization Add-on for Kubernetes
Apache License 2.0
492 stars 41 forks source link

Will VM Pod support hostNetwork? #20

Open hbuxiaofei opened 2 years ago

hbuxiaofei commented 2 years ago

Such a NICE project.

Will VM Pod support hostNetwork in the future ? Therefore, VM can support OVS bridge, support fcsan and RBD cloud disks.

fengye87 commented 2 years ago

Actually we're digging into more network options these days, but we haven't give the hostNetwork a thought. This is something worth further discussion though.

For the OVS support, I have to agree that CNI plugin is a little detour here. A more ideal way to do the VM network is that Virtink create a OVS port on host and attach a vNIC to it. However, we do try our best to keep Kubernetes the only integration point, so that Virtink can fit in almost any CNI and CSI plugins without a question. The same story applies to FCSAN and RBD or any other storages too. We prefer CSI to be the standard extension point.

Being said that, it would help us to re-think this decision if you could give more details about your use cases and problems? Lacking of corresponding CNI or CSI plugins? Low performance? Anything.