hetzner-k3s icon indicating copy to clipboard operation
hetzner-k3s copied to clipboard

Disabling kube-proxy configuration

Open georgeVasiliu opened this issue 8 months ago • 3 comments

Hello,

In the same idea that if we want to use another CNI than flannel we have the disable-flannel flag, I think it would be useful to also introduce a new flag called disable-proxy, which would simply add in the scripts the --disable-kube-proxy argument for k3s when installing it.

This is necessary for example in case of using Cilium + Gateway API, in which you are forced to use Cilium as a kubeProxy replacement completely and it requires the underlying cluster to not have kubeProxy enabled: https://docs.cilium.io/en/stable/network/servicemesh/gateway-api/gateway-api/

Would it be possible to add such support for that flag and when it's detected to add the necessary argument in the k3s installer script?

Thanks for this library also!

georgeVasiliu avatar Dec 21 '23 13:12 georgeVasiliu

Updated: I forked the repository and opened a new branch in the fork, I only have found 2 places which needed changes:

image

I just looked into it out of curiosity of how much work it would be needed to add this flag. If you want, I can open a pull request with those changes?

georgeVasiliu avatar Dec 21 '23 13:12 georgeVasiliu

Hi! A PR would be lovely, thanks :)

vitobotta avatar Dec 21 '23 19:12 vitobotta

Hi! I opened the pull request and added one note I had over there. Hope I didn't overlook anything. I'll have a final check this evening to make sure there wasn't anything else that needed to be adjusted.

georgeVasiliu avatar Dec 22 '23 11:12 georgeVasiliu

Hi, like I mentioned in the PR the kube proxy is disabled when you disable flannel. Let's continue the discussion in the PR anyway.

vitobotta avatar Apr 12 '24 12:04 vitobotta