Flannel: Provide more concrete guidance on upgrading flannel on Kubernetes

Created on 4 May 2017  路  9Comments  路  Source: coreos/flannel

At the moment, the manifest doesn't specify rolling updates, but some more thought is needed to determine if the k8s 1.6 rolling update feature is useful for flannel updates.

See https://kubernetes.io/docs/tasks/manage-daemon/update-daemon-set/

Current policy is "OnDelete"

kubectl get --namespace=kube-system ds/kube-flannel-ds -o go-template='{{.spec.updateStrategy.type}}{{"\n"}}'
OnDelete
aredocumentation

Most helpful comment

@tomdee Do you have any info at this time ? A link to what someone else did ?

All 9 comments

If I want to update from 0.9.1 to 0.10.0 today, how do I do so ?
On a cluster installed with kubeadm, I ran kubectl applying the manifest for 0.9.1 at the time

kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/v0.9.1/Documentation/kube-flannel.yml

As Tom pointed out the existing update strategy is OnDelete and since this impacts networking I need to be cautious

If I do kubectl apply the 0.10.0 manifest the flannel daemonset will not update ?

If I delete the 0.9.1 daemonset before applying the 0.10.0 manifest, will I lose network access to the cluster and networking within the cluster ?

Couldn't find any guidance when searching, so some guidance would be appreciated ?

Thanks
Pat

@tomdee Do you have any info at this time ? A link to what someone else did ?

+1 here, we are looking to do a flannel upgrade and we want to make sure we are following best practices since this is a critical piece of our infrastructure.

any pointers?

I have a Kubernetes Cluster (Bare-Metal) installed with Kubeadm (v1.12.5), Docker (v18.6), kubectl (v1.12.5), flannel v0.10.0.
I was able to upgrade ALL the components at the latest version (kubeadm 1.14, Docker v18.9.5, kubectl v1.14.1, kubelet 1.14.1) but i'm not able to upgrade flannel to 0.11.0 (i need it for Windows Worker Nodes).

I used this the first time to install flannel:
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/bc79dd1505b0c8681ece4de4c0d86c5cd2643275/Documentation/kube-flannel.yml

How can I upgrade to 0.11?

Thanks for the stupid question.

Francesco

any updates?

any updates?

I don't like to +1, but instructions on how to upgrade such a critical component of a cluster seems important. I ended up applying the new manifest and deleting the pods one by one, waiting for each to be fully terminated before deleting the next, but I have no idea if this would have caused any impact if this cluster were serving anything at the time.

I'm in the same boat, please provide some guidance on how to safely upgrade...would updating the image version in the daemonset sufficient?

Was this page helpful?
0 / 5 - 0 ratings