Search code examples
dockerkubernetescontainersflannelcalico

Will that cause any problem using flannel and calico in same kubernetes cluster?


I have installed kubernetes on digital ocean cloud. I installed both flannel and calico as CNI. Will, that causes any problems in my cluster?


Solution

  • Calico and Flannel uses different default IP subnets and CNI driver binaries, they will not work together on the same cluster if you deploy them using standard (not Canal) installations. But it's required for Kubernetes cluster to have one of the network add-on installed. You are not limited to use Flannel or Calico add-ons, there are more of them

    To remove Calico or Flannel from the cluster usually it's enough to run kubectl delete -f <calico-or-flannel.yaml> and reboot all nodes to get rid of interfaces created by Calico or Flannel. You may need to rejoin worker nodes to the cluster after that.