Skip to content

Commit 2ca9136

Browse files
RA489k8s-ci-robot
authored andcommitted
unhold the binaries on the worker nodes during upgrade (#14708)
1 parent aa9384e commit 2ca9136

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

content/en/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade-1-12.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,10 @@ This page explains how to upgrade a Kubernetes cluster created with `kubeadm` fr
233233
{{< tabs name="k8s_upgrade" >}}
234234
{{% tab name="Ubuntu, Debian or HypriotOS" %}}
235235
# replace "x" with the latest patch version
236+
apt-mark unhold kubelet kubeadm
236237
apt-get update
237238
apt-get upgrade -y kubelet=1.12.x-00 kubeadm=1.12.x-00
239+
apt-mark hold kubelet kubeadm
238240
{{% /tab %}}
239241
{{% tab name="CentOS, RHEL or Fedora" %}}
240242
# replace "x" with the latest patch version
@@ -268,6 +270,7 @@ This page explains how to upgrade a Kubernetes cluster created with `kubeadm` fr
268270
kubectl uncordon $NODE
269271
```
270272
273+
271274
1. After the kubelet is upgraded on all nodes, verify that all nodes are available again by running the following command from anywhere kubectl can access the cluster:
272275
273276
```shell

content/en/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade-1-13.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,10 @@ A possible workaround is described [here](https://github.com/kubernetes/kubeadm/
285285
{{< tabs name="k8s_kubelet_and_kubeadm" >}}
286286
{{% tab name="Ubuntu, Debian or HypriotOS" %}}
287287
# replace x in 1.13.x-00 with the latest patch version
288+
apt-mark unhold kubelet kubeadm
288289
apt-get update
289290
apt-get install -y kubelet=1.13.x-00 kubeadm=1.13.x-00
291+
apt-mark hold kubelet kubeadm
290292
{{% /tab %}}
291293
{{% tab name="CentOS, RHEL or Fedora" %}}
292294
# replace x in 1.13.x-0 with the latest patch version

0 commit comments

Comments
 (0)