Skip to content

Commit f04516f

Browse files
authored
Update kubeadm-upgrade.md (#30135)
* Update kubeadm-upgrade.md `apt-mark hold` is still required when `apt-get` is used with `--allow-change-held-packages`. `--allow-change-held-packages` unholds the package but it doesn't pin the new version. * Add missing changes * Update kubeadm-upgrade.md Remove apt >1.1 examples.
1 parent 440409e commit f04516f

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

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

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,6 @@ Pick a control plane node that you wish to upgrade first. It must have the `/etc
7878
apt-mark unhold kubeadm && \
7979
apt-get update && apt-get install -y kubeadm={{< skew currentVersion >}}.x-00 && \
8080
apt-mark hold kubeadm
81-
-
82-
# since apt-get version 1.1 you can also use the following method
83-
apt-get update && \
84-
apt-get install -y --allow-change-held-packages kubeadm={{< skew currentVersion >}}.x-00
8581
{{% /tab %}}
8682
{{% tab name="CentOS, RHEL or Fedora" %}}
8783
# replace x in {{< skew currentVersion >}}.x-0 with the latest patch version
@@ -175,10 +171,6 @@ Also calling `kubeadm upgrade plan` and upgrading the CNI provider plugin is no
175171
apt-mark unhold kubelet kubectl && \
176172
apt-get update && apt-get install -y kubelet={{< skew currentVersion >}}.x-00 kubectl={{< skew currentVersion >}}.x-00 && \
177173
apt-mark hold kubelet kubectl
178-
-
179-
# since apt-get version 1.1 you can also use the following method
180-
apt-get update && \
181-
apt-get install -y --allow-change-held-packages kubelet={{< skew currentVersion >}}.x-00 kubectl={{< skew currentVersion >}}.x-00
182174
{{% /tab %}}
183175
{{% tab name="CentOS, RHEL or Fedora" %}}
184176
# replace x in {{< skew currentVersion >}}.x-0 with the latest patch version
@@ -218,10 +210,6 @@ without compromising the minimum required capacity for running your workloads.
218210
apt-mark unhold kubeadm && \
219211
apt-get update && apt-get install -y kubeadm={{< skew currentVersion >}}.x-00 && \
220212
apt-mark hold kubeadm
221-
-
222-
# since apt-get version 1.1 you can also use the following method
223-
apt-get update && \
224-
apt-get install -y --allow-change-held-packages kubeadm={{< skew currentVersion >}}.x-00
225213
{{% /tab %}}
226214
{{% tab name="CentOS, RHEL or Fedora" %}}
227215
# replace x in {{< skew currentVersion >}}.x-0 with the latest patch version
@@ -256,10 +244,6 @@ without compromising the minimum required capacity for running your workloads.
256244
apt-mark unhold kubelet kubectl && \
257245
apt-get update && apt-get install -y kubelet={{< skew currentVersion >}}.x-00 kubectl={{< skew currentVersion >}}.x-00 && \
258246
apt-mark hold kubelet kubectl
259-
-
260-
# since apt-get version 1.1 you can also use the following method
261-
apt-get update && \
262-
apt-get install -y --allow-change-held-packages kubelet={{< skew currentVersion >}}.x-00 kubectl={{< skew currentVersion >}}.x-00
263247
{{% /tab %}}
264248
{{% tab name="CentOS, RHEL or Fedora" %}}
265249
# replace x in {{< skew currentVersion >}}.x-0 with the latest patch version

0 commit comments

Comments
 (0)