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

Possibility to install cluster without CNI #11264

Open
ehsan310 opened this issue Jun 4, 2024 · 5 comments
Open

Possibility to install cluster without CNI #11264

ehsan310 opened this issue Jun 4, 2024 · 5 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@ehsan310
Copy link
Contributor

ehsan310 commented Jun 4, 2024

What would you like to be added

I would like to install and push cluster without a default CNI and not using Kubespray to install the CNI plugin.
I have tried to use cni-plugins but that will not help in case I want to install CNI like Calico which manages dynamic IPAM.
The reason for cni-plugins not working was during cluster initialization there is --pod-cidr which I don't want to pass any static ip range

Why is this needed

To be able to install custom cni or another way of installing the CNI like operator based installation for Calico

@ehsan310 ehsan310 added the kind/feature Categorizes issue or PR as related to a new feature. label Jun 4, 2024
@yankay
Copy link
Member

yankay commented Jun 5, 2024

HI @ehsan310

I'm not very sure, using kube_network_plugin: cni may solution the issue :-)

@poblahblahblah
Copy link
Contributor

We do the same thing since we have another mechanism to handle CNI management outside of kubespray.

To do this we set kube_network_plugin: cni as @yankay suggested.

@ehsan310
Copy link
Contributor Author

ehsan310 commented Jun 6, 2024

Ok!
I thought of trying this but was afraid of —pod-cidr flag actually that is only ignored when calico is chosen as CNI
Maybe not really a problem!? Will try it on my lab.

do you think it is safe to change it on a running cluster?

@yankay
Copy link
Member

yankay commented Jun 11, 2024

Ok! I thought of trying this but was afraid of —pod-cidr flag actually that is only ignored when calico is chosen as CNI Maybe not really a problem!? Will try it on my lab.

do you think it is safe to change it on a running cluster?

Changing the CNI is not a safe action on a running cluster :-)

@ehsan310
Copy link
Contributor Author

In case i change cni plugin from calico to cni , do kubespray remove anything?

i have checked cni role and as far as I understood it just create folders unless some other thing is changed somewhere else.

i have to change my running cluster to calico operator based installation .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

3 participants