Skip to content
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

Level rke2-flannel CNI plugin config with k3s #556

Open
wants to merge 2 commits into
base: main-source
Choose a base branch
from

Conversation

Apsu
Copy link

@Apsu Apsu commented Nov 5, 2024

This change follows how k3s configures flannel mostly, including adding the bandwidth plugin, except for leaving the cni version the same.

Most importantly and the main reason for this change, this adds "forceAddress": true to handle when the cni0 interface, /run/flannel/subnet.env, and node's podCIDR don't match, without requiring an rke2 service restart/manual cni0 intervention.

Reference: https://github.com/k3s-io/k3s/blob/master/pkg/agent/flannel/setup_linux.go

Issue:

@Apsu Apsu requested a review from a team as a code owner November 5, 2024 05:39
@manuelbuil
Copy link
Contributor

@rbrtbnfgl any concern? Mine is only with rke2-windows but it does not use the chart option for the config, so it should not affect it

@brandond
Copy link
Member

brandond commented Nov 5, 2024

lgtm but there appear to be issues with the packageversion

@Apsu
Copy link
Author

Apsu commented Nov 5, 2024

Happy to fix if I did the version bump wrong

packages/rke2-flannel/package.yaml Outdated Show resolved Hide resolved
This change follows how k3s configures flannel mostly, including adding
the `bandwidth` plugin, except for leaving the cni version the same.

Most importantly and the main reason for this change, this adds
`"forceAddress": true` to handle when the `cni0` interface,
`/run/flannel/subnet.env`, and node's podCIDR don't match, without
requiring an rke2 service restart/ manual `cni0` intervention.
@manuelbuil
Copy link
Contributor

@Apsu is it ok if we add this in the December release? We are already moving Flannel one minor version in the November release. I don't expect any problem but it's certainly a potential source of problems

@Apsu
Copy link
Author

Apsu commented Nov 7, 2024

Oh no problem at all. Thanks for being cautious!

@brandond
Copy link
Member

brandond commented Nov 7, 2024

I created an issue in RKE2 to track missing bandwidth plugin support: rancher/rke2#7244

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants