Skip to content

Commit 82348a6

Browse files
SataQiuneolit123
andcommitted
kubeadm: update docs for removed UpgradeAddonsBeforeControlPlane feature gate
Co-authored-by: Lubomir I. Ivanov <neolit123@gmail.com>
1 parent f84e28e commit 82348a6

File tree

2 files changed

+5
-29
lines changed

2 files changed

+5
-29
lines changed

content/en/docs/reference/setup-tools/kubeadm/kubeadm-init.md

+4-24
Original file line numberDiff line numberDiff line change
@@ -192,37 +192,14 @@ on a control plane node to become ready. The wait process starts right after the
192192
is started by kubeadm. You are advised to enable this feature gate in case you wish to observe a ready
193193
state from all control plane components during the `kubeadm init` or `kubeadm join` command execution.
194194

195-
List of deprecated feature gates:
196-
197-
{{< table caption="kubeadm deprecated feature gates" >}}
198-
Feature | Default
199-
:-------|:--------
200-
`UpgradeAddonsBeforeControlPlane` | `false`
201-
{{< /table >}}
202-
203-
Feature gate descriptions:
204-
205-
`UpgradeAddonsBeforeControlPlane`
206-
: This is as a **disabled** feature gate that was introduced for Kubernetes v1.28, in order to allow reactivating a legacy
207-
and deprecated behavior during cluster upgrade. For kubeadm versions prior to v1.28, kubeadm upgrades cluster addons (including
208-
CoreDNS and kube-proxy) immediately during `kubeadm upgrade apply`, regardless of whether there are other control plane
209-
instances that have not been upgraded. This may cause compatibility problems. Since v1.28, kubeadm defaults to a mode that
210-
always checks whether all the control plane instances have been upgraded before starting to upgrade the addons. This behavior
211-
is applied to both `kubeadm upgrade apply` and `kubeadm upgrade node`. kubeadm determines whether a control plane instance
212-
has been upgraded by checking whether the image of the kube-apiserver Pod has been upgraded. You must perform control plane
213-
instances upgrade sequentially or at least ensure that the last control plane instance upgrade is not started until all the
214-
other control plane instances have been upgraded completely, and the addons upgrade will be performed after the last control plane
215-
instance is upgraded. The deprecated `UpgradeAddonsBeforeControlPlane` feature gate gives you a chance to keep the old upgrade
216-
behavior. You should not need this old behavior; if you do, you should consider changing your cluster or upgrade processes, as this
217-
feature gate will be removed in a future release.
218-
219195
List of removed feature gates:
220196

221197
{{< table caption="kubeadm removed feature gates" >}}
222198
Feature | Alpha | Beta | GA | Removed
223199
:-------|:------|:-----|:---|:-------
224200
`IPv6DualStack` | 1.16 | 1.21 | 1.23 | 1.24
225201
`UnversionedKubeletConfigMap` | 1.22 | 1.23 | 1.25 | 1.26
202+
`UpgradeAddonsBeforeControlPlane` | 1.28 | - | - | 1.31
226203
{{< /table >}}
227204

228205
Feature gate descriptions:
@@ -241,6 +218,9 @@ or `kubeadm upgrade apply`), kubeadm respects the value of `UnversionedKubeletCo
241218
(during `kubeadm join`, `kubeadm reset`, `kubeadm upgrade ...`), kubeadm attempts to use unversioned ConfigMap name first;
242219
if that does not succeed, kubeadm falls back to using the legacy (versioned) name for that ConfigMap.
243220

221+
`UpgradeAddonsBeforeControlPlane`
222+
: This feature gate has been removed. It was introduced in v1.28 as a deprecated feature and then removed in v1.31. For documentation on older versions, please switch to the corresponding website version.
223+
244224
### Adding kube-proxy parameters {#kube-proxy}
245225

246226
For information about kube-proxy parameters in the kubeadm configuration see:

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

+1-5
Original file line numberDiff line numberDiff line change
@@ -189,11 +189,7 @@ Pick a control plane node that you wish to upgrade first. It must have the `/etc
189189
the control plane instances have been upgraded before starting to upgrade the addons. You must perform control plane
190190
instances upgrade sequentially or at least ensure that the last control plane instance upgrade is not started until all
191191
the other control plane instances have been upgraded completely, and the addons upgrade will be performed after the last
192-
control plane instance is upgraded. If you want to keep the old upgrade behavior, please enable the `UpgradeAddonsBeforeControlPlane`
193-
feature gate by `kubeadm upgrade apply --feature-gates=UpgradeAddonsBeforeControlPlane=true`. The Kubernetes project does
194-
not in general recommend enabling this feature gate, you should instead change your upgrade process or cluster addons so
195-
that you do not need to enable the legacy behavior. The `UpgradeAddonsBeforeControlPlane` feature gate will be removed in
196-
a future release.
192+
control plane instance is upgraded.
197193
{{</ note >}}
198194

199195
1. Manually upgrade your CNI provider plugin.

0 commit comments

Comments
 (0)