kubernetes-sigs / sig-windows-tools

Repository for tools and artifacts related to the sig-windows charter in Kubernetes. Scripts to assist kubeadm and wincat and flannel will be hosted here.
Apache License 2.0
123 stars 123 forks source link

feasibility: flannel host-gw backend extension #356

Closed Zombro closed 7 months ago

Zombro commented 8 months ago

Is your feature request related to a problem? Please describe.

No.

Describe the solution you'd like

Extend the flannel and kube-proxy hostprocess components to support either host-gw or vxlan backends.

Proposal idea

One approach is to abstract backend choice into environment variables and the entrypoint scripts so that one image works for both backend options

Engineers would just need to set FLANNEL_BACKEND env in each manifest.

Additional context

I'm coming from a history of cluster builds that all leveraged flannel host-gw backend and win-bridge cni plugin delegate. I wanted to keep this consistent with new a k8s v1.28 cluster on windows server 2022 nodes.

minimum viable prototype can be found here: https://github.com/Zombro/sig-windows-tools/pull/1/files, sort of shows a rough draft of the diff between your overlay and my bridge

i could spin up a pr if you think it's worthwhile