Score:1

Kubernetes: migrate from flannel to canal or install calico network policy alongside flannel

cn flag

I installed flannel as a CNI for my Kubernetes cluster. Now I want to add a network policy to my cluster. After searching I find Canal (Calico for policy and flannel for networking).

How I can migrate from flannel to canal? Or is there any way to install Calico network policy alongside current flannel installation?

Thanks

Score:0
jp flag

Canal is just a another name for flannel, so there is no way to migrate, but there is a way to migrate from flannel/Canal to Calico as described here.

To install Calico for policy and flannel (aka Canal) for networking, please have a look here.

Wytrzymały Wiktor avatar
it flag
Hello @nader and welcome to ServerFault! Please remember to [react to answers for your questions](https://stackoverflow.com/help/someone-answers). That way we know if the answers were helpful and other community members could also benefit from them. Try to [accept answer](https://stackoverflow.com/help/accepted-answer) that is the final solution for your issue, upvote answers that are helpful and comment on those which could be improved or require additional attention. Enjoy your stay!
nader avatar
cn flag
Hello @WytrzymałyWiktor and thank you for your advice. I read the link mentioned in the answer but before I install the Canal, I need to remove the flannel. How I can remove it? and what happens to my running pods if I remove the flannel then install Canal?
Jakub Siemaszko avatar
jp flag
To remove Flannel from the cluster usually it's enough to run kubectl delete -f <flannel.yaml> and reboot all nodes to get rid of any interfaces created by Flannel. You may need to rejoin worker nodes to the cluster after that.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.