From 4b35f3e44a2bb276f05f8dd7e1f1338762b4d76b Mon Sep 17 00:00:00 2001 From: kvaps Date: Wed, 15 Jan 2020 12:09:33 +0100 Subject: [PATCH] Use --allow-change-held-packages flag (#17376) --- .../kubeadm/kubeadm-upgrade.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/content/en/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade.md b/content/en/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade.md index c23a5a1649..e6097f44db 100644 --- a/content/en/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade.md +++ b/content/en/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade.md @@ -75,6 +75,10 @@ The upgrade workflow at high level is the following: apt-mark unhold kubeadm && \ apt-get update && apt-get install -y kubeadm=1.17.x-00 && \ apt-mark hold kubeadm + + # since apt-get version 1.1 you can also use the following method + apt-get update && \ + apt-get install -y --allow-change-held-packages kubeadm=1.17.x-00 {{% /tab %}} {{% tab name="CentOS, RHEL or Fedora" %}} # replace x in 1.17.x-0 with the latest patch version @@ -271,6 +275,10 @@ Also `sudo kubeadm upgrade plan` is not needed. apt-mark unhold kubelet kubectl && \ apt-get update && apt-get install -y kubelet=1.17.x-00 kubectl=1.17.x-00 && \ apt-mark hold kubelet kubectl + + # since apt-get version 1.1 you can also use the following method + apt-get update && \ + apt-get install -y --allow-change-held-packages kubelet=1.17.x-00 kubectl=1.17.x-00 {{% /tab %}} {{% tab name="CentOS, RHEL or Fedora" %}} # replace x in 1.17.x-0 with the latest patch version @@ -299,6 +307,10 @@ without compromising the minimum required capacity for running your workloads. apt-mark unhold kubeadm && \ apt-get update && apt-get install -y kubeadm=1.17.x-00 && \ apt-mark hold kubeadm + + # since apt-get version 1.1 you can also use the following method + apt-get update && \ + apt-get install -y --allow-change-held-packages kubeadm=1.17.x-00 {{% /tab %}} {{% tab name="CentOS, RHEL or Fedora" %}} # replace x in 1.17.x-0 with the latest patch version @@ -341,6 +353,10 @@ without compromising the minimum required capacity for running your workloads. apt-mark unhold kubelet kubectl && \ apt-get update && apt-get install -y kubelet=1.17.x-00 kubectl=1.17.x-00 && \ apt-mark hold kubelet kubectl + + # since apt-get version 1.1 you can also use the following method + apt-get update && \ + apt-get install -y --allow-change-held-packages kubelet=1.17.x-00 kubectl=1.17.x-00 {{% /tab %}} {{% tab name="CentOS, RHEL or Fedora" %}} # replace x in 1.17.x-0 with the latest patch version