Public bug reported:

Not a bug in Ubuntu per se, but the Ubuntu installer behavior creates
bugs in the Kubernetes cluster over time.

When upgrading a minor release of Kubernetes (K8s), it's essential to
run post-installation upgrade scripts on the cluster in order to bring
it up-to-date with the most recent kubeadm version installed by Ubuntu.
The way that it stands today, upgrading Ubuntu 18.04 LTS to keep up with
patches will also automatically upgrade Kubernetes without the operator
knowing that they need to take further action to bring the cluster in
line with the newest minor version of K8s. If you look at the official
K8s upgrade instructions for Ubuntu at https://kubernetes.io/docs/tasks
/administer-cluster/kubeadm/kubeadm-upgrade-1-15/, you'll see that they
are expecting a hold to be placed on the package upgrade and that the
operator must release it using `apt-mark unhold kubeadm`. In my
particular case, I installed K8s version 1.13.4 earlier this year on a
new 18.04 LTS server and through regular patching it was automatically
upgraded to 1.15.0 without my knowledge so I never upgraded the cluster
to match. The result is that the pods in the cluster became unavailable
at an alarming rate and my application was sending back lots of 504
Gateway Timeout errors to the browser as the result of the disconnected
pod. I was able to upgrade the cluster to 1.14.0, then to 1.15.0, and
that fixed the problem completely. I've now added holds for kubeadm,
kubelet, and kubectl to my own installation instructions, but it would
be nice if Ubuntu did this automatically on installation so that folks
don't get into this pickle in the first place.

Thanks.

ubuntu@kubernetes-master:~$ lsb_release -rd
Description:    Ubuntu 18.04.2 LTS
Release:        18.04

** Affects: kubernetes (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1835470

Title:
  apt-mark hold not set on kubernetes installation

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/kubernetes/+bug/1835470/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to