Skip to content

Commit f77ac7b

Browse files
authored
Merge pull request #25788 from sculley/fix-kubeadm-upgrade-docs-1.20
moved drain the node step to after call kubeadm upgrade step for worker nodes
2 parents 798904b + 8fcb550 commit f77ac7b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -231,21 +231,21 @@ without compromising the minimum required capacity for running your workloads.
231231
{{% /tab %}}
232232
{{< /tabs >}}
233233
234-
### Drain the node
234+
### Call "kubeadm upgrade"
235235
236-
- Prepare the node for maintenance by marking it unschedulable and evicting the workloads:
236+
- For worker nodes this upgrades the local kubelet configuration:
237237
238238
```shell
239-
# replace <node-to-drain> with the name of your node you are draining
240-
kubectl drain <node-to-drain> --ignore-daemonsets
239+
sudo kubeadm upgrade node
241240
```
242241
243-
### Call "kubeadm upgrade"
242+
### Drain the node
244243
245-
- For worker nodes this upgrades the local kubelet configuration:
244+
- Prepare the node for maintenance by marking it unschedulable and evicting the workloads:
246245
247246
```shell
248-
sudo kubeadm upgrade node
247+
# replace <node-to-drain> with the name of your node you are draining
248+
kubectl drain <node-to-drain> --ignore-daemonsets
249249
```
250250
251251
### Upgrade kubelet and kubectl

0 commit comments

Comments
 (0)