From d720dd1db846e580a7e05a71faf754b97be15d61 Mon Sep 17 00:00:00 2001 From: silenceshell Date: Thu, 9 May 2019 20:46:23 +0800 Subject: [PATCH] kubectl should also be held by apt-mark here apt installs both kubelet and kubectl but just holds kubelet. I think kubectl should alse be held by apt-mark. ``` # replace x in 1.14.x-00 with the latest patch version apt-mark unhold kubelet && \ apt-get update && apt-get install -y kubelet=1.14.x-00 kubectl=1.14.x-00 && \ apt-mark hold kubelet ``` --- .../tasks/administer-cluster/kubeadm/kubeadm-upgrade-1-14.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/en/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade-1-14.md b/content/en/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade-1-14.md index 1ea86929eb320..6df1d9d0a9d2c 100644 --- a/content/en/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade-1-14.md +++ b/content/en/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade-1-14.md @@ -228,9 +228,9 @@ are merged into a single document. {{< tabs name="k8s_install_kubelet" >}} {{% tab name="Ubuntu, Debian or HypriotOS" %}} # replace x in 1.14.x-00 with the latest patch version - apt-mark unhold kubelet && \ + apt-mark unhold kubelet kubectl && \ apt-get update && apt-get install -y kubelet=1.14.x-00 kubectl=1.14.x-00 && \ - apt-mark hold kubelet + apt-mark hold kubelet kubectl {{% /tab %}} {{% tab name="CentOS, RHEL or Fedora" %}} # replace x in 1.14.x-0 with the latest patch version