-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Persist the bridge-nf-call-iptables across rke2 restart #884
Conversation
The bridge-nf-call-iptables should be disabled by network-controller. But rke2 will toggle it back to enable. Need to make sure it stays at disabled. Signed-off-by: Chris Chiu <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about another 2 options? thanks.
sysctl -a | grep bridge
net.bridge.bridge-nf-call-arptables = 1
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 0
https://wiki.libvirt.org/Net.bridge.bridge-nf-call_and_sysctl.conf.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this is the only way to cope with the issue right now. The kernel tunable is hardcoded to 1
in k3s: https://github.com/k3s-io/k3s/blob/55cda2200e0f3e670970b044871f9ea09134cff6/pkg/agent/syssetup/setup.go#L48
LGTM, thank you.
The |
@w13915984028 gentle ping. What do you think about it? Thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks.
@mingshuoqiu The PR needs to be backported to the v1.4/v1.3 branch before moving the issue to ready for testing. |
The bridge-nf-call-iptables should be disabled by network-controller. But rke2 will toggle it back to enable. Need to make sure it stays at disabled.
Problem:
harvester/harvester#7041
Solution:
persist the bridge-nf-call-iptables across rke2 restart
Related Issue:
harvester/harvester#3960
Test plan:
sysctl -a | grep net.bridge.bridge-nf-call-iptables
systemctl restart rke2-server
on management nodesystemctl restart rke2-agent
on worker node