Documentation/upgrade.md
Flannel upgrade/downgrade procedure
There are different ways of changing flannel version in the running cluster:
1. Delete all the flannel resources using kubectl
kubectl -n kube-flannel delete daemonset kube-flannel-ds
kubectl -n kube-flannel delete configmap kube-flannel-cfg
kubectl -n kube-flannel delete serviceaccount flannel
kubectl delete clusterrolebinding.rbac.authorization.k8s.io flannel
kubectl delete clusterrole.rbac.authorization.k8s.io flannel
kubectl delete namespace kube-flannel
2. Install the newer version of flannel and reboot the nodes
If the update is done from newer version as 0.20.2 it can be done using kubectl
kubectl apply -f https://github.com/flannel-io/flannel/releases/latest/download/kube-flannel.yml
In case of error on the labeling follow the previous way.
From version 0.21.4 flannel is deployed on an helm repository at https://flannel-io.github.io/flannel/ it will be possible to manage the update directly with helm.
helm upgrade flannel --set podCidr="10.244.0.0/16" --namespace kube-flannel flannel/flannel