-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Change calico_feature_detect_override default value to ChecksumOffloadBroken=true #9261
Change calico_feature_detect_override default value to ChecksumOffloadBroken=true #9261
Conversation
HI @cristicalin, would you please review it :-) ? |
ref to: projectcalico/calico#4727 |
Hi @yankay Thank you for doing this. The original issue depends on the combination of Linux kernel version and HW. Kubespray supports a lot of Linux distributions, so I want to make sure this point before setting it as the default. |
HI @oomichi On the kernel < 5.7, the VXLAN offload default is off. So the performance does not change. There are some performance data from: https://randomsecurity.dev/posts/vxlan-offload/. The VXLan offload increases the performance. So I think, the default 'ChecksumOffloadBroken=true' to let the calico can be worked in most environment. If the user wants to tunning , he can set the 'ChecksumOffloadBroken=false' to enable the VXLAN offload (Requires kernel > 5.7 and HW support). And it's a calico's bug, if calico solves the problem, the kubespray can change back. |
That's a good point, if we go this road a big warning in the release note needs to be there. |
22e861b
to
5e7cef3
Compare
Thanks @floryut , Would you please review it ? |
Not sure we should rush this onto 2.20, WDYT @oomichi @cristicalin ? |
This has the potential to cause some head scratching on folks not affected by the bug so I would actually just document this in the docs and mention situations where it needs to be applied. If we can apply some detection logic it would be better but having kubespray figure all corner cases out of the fox seems like a recipe for complexity and code rot over time. |
HI @cristicalin , thank you for the comments. |
I hesitate to set the value which could cause performance side-effect on some environments as the default. It would be easier to find the solution if some features(in this case, calico) don’t work, because the error messages would be output and be helpful. One more thing is the default IPIP of calico doesn’t work on Azure and we need to specify VXLAN as https://projectcalico.docs.tigera.io/reference/public-cloud/azure |
5e7cef3
to
7c6161b
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: yankay The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
ChecksumOffloadBroken=true
7c6161b
to
753de23
Compare
753de23
to
447f1b7
Compare
ChecksumOffloadBroken=true
What type of PR is this?
What this PR does / why we need it:
When installed in the Rocky9, there are some bugs with calico and kernel. The network is broken. The kubespray's default configuration needs to provision a healthy cluster.
So I want to recommend to the metion it the calico.md.
The solution is also used by:
Rancher: https://github.com/rancher/rke2-charts/blob/main-source/packages/rke2-calico/generated-changes/patch/values.yaml.patch#L55
Azure: https://github.com/kubernetes-sigs/cluster-api-provider-azure/blob/main/templates/addons/calico/patches/calico-node.yaml
So, I suggest setting the default value to the ChecksumOffloadBroken=true, to disable the VXLAN offload by default, so the calico can be worked in most cases.
Which issue(s) this PR fixes:
Fixes #8992
Special notes for your reviewer:
Does this PR introduce a user-facing change?: