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

Support dual-stack in cni: canal #1883

Closed
manuelbuil opened this issue Sep 28, 2021 · 4 comments
Closed

Support dual-stack in cni: canal #1883

manuelbuil opened this issue Sep 28, 2021 · 4 comments
Assignees

Comments

@manuelbuil
Copy link
Contributor

Is your feature request related to a problem? Please describe.

It is currently not possible to deploy canal using dual-stack automatically

Describe the solution you'd like

When configuring the initial cluster-cidr and service-cidr with ipv4 and ipv6 addresses, I'd like canal to reflect that and deploy a dual-stack networking infra

Additional context

@manuelbuil
Copy link
Contributor Author

After investigating, this is not possible to do as canal does not support dual-stack. The problem is with the ipam configuration:

              "type": "host-local",
              "subnet": "usePodCidr"

in calico code, it uses the function https://github.com/projectcalico/cni-plugin/blob/v3.19.2/pkg/k8s/k8s.go#L894-L909 to fetch the ips and that one will only return one cidr. It should call getPodCidrs which will return a slice of cidrs. As the returned value is different, it will require some code changes

@manuelbuil manuelbuil removed this from the v1.22.4+rke2r1 milestone Nov 15, 2021
@manishmaharjan
Copy link

@manuelbuil , @cwayne18 , Is this still undergoing development or still in the blocked in Development at the moment?
Any estimate for a release in any specific milestone? Thanks!

@manuelbuil
Copy link
Contributor Author

@manuelbuil , @cwayne18 , Is this still undergoing development or still in the blocked in Development at the moment? Any estimate for a release in any specific milestone? Thanks!

This is blocked by upstream canal: https://github.com/projectcalico/cni-plugin/issues/1177. Once canal supports dual-stack, we will be able to support it in rke2. In the meanwhile, you'll need to use another cni plugin

@manuelbuil
Copy link
Contributor Author

Replaced by this new issue #2342

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

No branches or pull requests

3 participants