wolfi-dev / os

Main package repository for production Wolfi images
Other
823 stars 250 forks source link

[Wolfi Package Request]: iptables-wrapper #24440

Open sgalsaleh opened 3 months ago

sgalsaleh commented 3 months ago

What software would you like us to add to wolfi-os. Ideally include a URL to the project and its source.

https://github.com/kubernetes-sigs/iptables-wrappers/ https://raw.githubusercontent.com/kubernetes-sigs/iptables-wrappers/v2/iptables-wrapper-installer.sh

which versions of the software should we include?

v2

Add some justification for why this specific package and versions are important.

The wrapper script and the iptables-wrapper binary seem to be required to support ipv6 in kube-proxy. When trying to use the kube-proxy Wolfi package with just the ip6tables and iptables packages, kube-proxy complains with the following:

...
server_others.go:146] "No iptables support for family" ipFamily="IPv6"
server.go:654] "kube-proxy running in single-stack mode" ipFamily="IPv4"
...

I noticed that the cilium package includes that wrapper script, so I tried adding the cilium-iptables package, and kube-proxy was able to detect ipv6 support:

...
server.go:652] "kube-proxy running in dual-stack mode" primary ipFamily="IPv4"
...

Would it be possible to add this wrapper script and the iptables-wrapper binary as a separate package or a sub-package for the kube-proxy package and have it come from the official Kubernetes project here instead? Kubernetes includes that in the build process for kube-proxy here.

Thanks in advance!

Please check all that apply

tuananh commented 3 months ago

i think it's better off as separated package because the src code to build is not coming from kube-proxy. they just include it in kube-proxy image.

sgalsaleh commented 3 months ago

Makes sense.