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

Traffic shaping (bandwidth CNI plugin) does not work with cni: flannel #7244

Open
brandond opened this issue Nov 7, 2024 · 2 comments
Open
Assignees
Labels

Comments

@brandond
Copy link
Member

brandond commented Nov 7, 2024

Environmental Info:
RKE2 Version:
n/a

Node(s) CPU architecture, OS, and Version:
linux

Cluster Configuration:
n/a

Describe the bug:
Cannot follow upstream instructions to enable traffic shaping:
https://kubernetes.io/docs/concepts/extend-kubernetes/compute-storage-net/network-plugins/#support-traffic-shaping

Steps To Reproduce:

  1. Install RKE2 with flannel CNI
  2. Deploy pod with bandwidth annotations

Expected behavior:
bandwith plugin is executed to set traffic limits on network namespace

Actual behavior:
Fails because rke2-flannel CNI config lacks bandwidth plugin config

Additional context / logs:
May also be an issue for other CNIs, I haven't actually tested.

@manuelbuil
Copy link
Contributor

I think the issue is mostly about making both RKE2 and K3s config the same. There are certain "meta" cni plugins: https://github.com/containernetworking/plugins/tree/main/plugins/meta which you can stack together with the main cni plugin. But I don't think we should add all of them by default to network plugins

@brandond
Copy link
Member Author

brandond commented Nov 7, 2024

Yeah but you need to enable bandwidth in the CNI config for the Kubernetes feature to work properly. At the moment I don't think it'll work

Ref:

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

No branches or pull requests

2 participants