Closed elchenberg closed 7 months ago
What happened?
Kube-router v2.1.0 uses iptables with the nftables backend even when the host is using iptables with the legacy backend.
What did you expect to happen?
Since the iptables-wrapper is installed in the container image I expected kube-router to use the same backend as the host system.
How can we reproduce the behavior you experienced?
iptables --version
iptables v1.8.9 (legacy)
kubectl --namespace kube-system exec daemonsets/kube-router -- iptables --version
iptables v1.8.10 (nf_tables)
System Information (please complete the following information):
kube-router --version
Additional context
When I downgrade kube-router to v2.0.1 the correct iptables backend is used.
According to the iptables-wrapper documentation the iptables-legacy package needs to be installed in containers that use an Alpine 3.19 base image: https://github.com/kubernetes-sigs/iptables-wrappers?tab=readme-ov-file#building-a-container-image-that-uses-iptables
iptables-legacy
Seems pretty straightforward. Feel free to raise a PR.
What happened?
Kube-router v2.1.0 uses iptables with the nftables backend even when the host is using iptables with the legacy backend.
What did you expect to happen?
Since the iptables-wrapper is installed in the container image I expected kube-router to use the same backend as the host system.
How can we reproduce the behavior you experienced?
iptables --version
on the host. Example output:iptables v1.8.9 (legacy)
kubectl --namespace kube-system exec daemonsets/kube-router -- iptables --version
). Output:iptables v1.8.10 (nf_tables)
System Information (please complete the following information):
kube-router --version
): 2.1.0Additional context
When I downgrade kube-router to v2.0.1 the correct iptables backend is used.
According to the iptables-wrapper documentation the
iptables-legacy
package needs to be installed in containers that use an Alpine 3.19 base image: https://github.com/kubernetes-sigs/iptables-wrappers?tab=readme-ov-file#building-a-container-image-that-uses-iptables