Commit Graph

4670 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
e30c8a3dde Merge pull request #130040 from HirazawaUi/make-error-consistent
kubeadm: make kubeadm init and join output the same error
2025-02-11 07:47:58 -08:00
HirazawaUi
ab02cda168 make error consistent 2025-02-11 21:21:10 +08:00
Kubernetes Prow Robot
3e4e2437e4 Merge pull request #130045 from carlory/kubeadm-exec-check
kubeadm: update preflight check
2025-02-11 01:21:57 -08:00
carlory
4facb87224 kubeadm: update preflight check
Co-authored-by: Yusuke Abe <chansuke0@gmail.com>
Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-02-11 11:06:43 +08:00
SataQiu
dc51c81751 kubeadm: update v1beta4 docs 2025-02-10 21:34:48 +08:00
SataQiu
7edc7fbd47 kubeadm: add --etcd-upgrade flag to kubeadm upgrade plan 2025-02-07 15:40:00 +08:00
Christian Schlotter
6c093b1699 kubeadm: fix dry-run for kubelet-wait-bootstrap phase 2025-02-05 12:40:08 +01:00
Christian Schlotter
20fbdeac96 kubeadm: fix upgrade to be able to rollback ControlPlaneLocalMode 2025-02-05 11:33:55 +01:00
Christian Schlotter
bb36212342 kubeadm: Promote ControlPlaneKubeletLocalMode feature gate to beta 2025-02-05 11:33:34 +01:00
Kubernetes Prow Robot
569d1896e6 Merge pull request #129620 from neolit123/1.33-update-all-cp-components-check
kubeadm: graduate WaitForAllControlPlaneComponents to Beta
2025-02-05 01:54:17 -08:00
Kubernetes Prow Robot
6ef2458aaa Merge pull request #129859 from neolit123/1.33-use-etcdapi-timeout
kubeadm: use the v1beta4 EtcdAPICall timeout for etcd calls
2025-01-30 07:33:30 -08:00
Lubomir I. Ivanov
f310ac03f4 kubeadm: graduate WaitForAllControlPlaneComponents to Beta
- Set the feature gate to Beta and enabled by default.
- Make sure that the source of truth for which address/port
to use for a component health check comes from the respective
component static Pod manifest. That is done to comply
with any user --patches that are applied on top
of the ClusterConfiguration.
2025-01-29 16:07:20 +02:00
Lubomir I. Ivanov
0c34b706b2 Revert "kubeadm: Promote ControlPlaneKubeletLocalMode feature gate to beta" 2025-01-29 12:36:42 +02:00
Lubomir I. Ivanov
b04e1b80be kubeadm: use the v1beta4 EtcdAPICall timeout for etcd calls
v1beta4 added the Timeouts struct and a EtcdAPICall timeout
field, but it was never used in the etcd client calls.

This is a bug, so it should be fixed, we also reduced
the timeout from 200 seconds exponentional backoff to 2 minute
linear default timeout.
2025-01-28 17:27:05 +02:00
Christian Schlotter
b3e1d57339 kubeadm: Promote ControlPlaneKubeletLocalMode feature gate to beta 2025-01-27 15:41:00 +01:00
Huang Huang
9998a032b1 kubeadm: fix a wrong log message 2025-01-22 13:37:49 +08:00
Kubernetes Prow Robot
b92b3d33e2 Merge pull request #129644 from neolit123/1.33-update-text-at-end-of-reset
kubeadm: improve message in 'reset'
2025-01-18 06:38:41 -08:00
Kubernetes Prow Robot
fcc1e9002a Merge pull request #129450 from carlory/kubeadm-exec-check
kubeadm: update preflight check
2025-01-18 06:38:34 -08:00
Kubernetes Prow Robot
ab54e442c6 Merge pull request #128773 from bzsuni/bz/etcd/update/3.5.17
Update etcd from v3.5.16 to v3.5.17
2025-01-16 21:22:34 -08:00
Lubomir I. Ivanov
dac6b34a61 kubeadm: improve message in 'reset'
Link to the k8s.io website page for 'kubeadm reset', which
should have the instructions on how to perform manuall cleanups.
2025-01-16 10:15:04 +02:00
Kubernetes Prow Robot
e384893030 Merge pull request #129594 from neolit123/1.33-fix-preflight-pull-sandbox-error
kubeadm: remove misplaced error during image pull
2025-01-13 21:02:38 -08:00
Lubomir I. Ivanov
2f4bd13fe5 kubeadm: remove misplaced error during image pull
During preflight when an image is pulled, if the sandbox image
check returns an error, the same error later blocks the actual
image pull.
2025-01-13 19:29:39 +02:00
Lubomir I. Ivanov
a92297f1a7 kubeadm: remove the GA EtcdLearnerMode FG 2025-01-13 16:44:56 +02:00
Kubernetes Prow Robot
afc4647816 Merge pull request #129561 from mozillazg/patch-1
kubeadm: fix a wrong comment
2025-01-11 06:38:32 -08:00
Huang Huang
018ee41e6f kubeadm: fix a wrong comment
apply commit suggestion

Co-authored-by: Lubomir I. Ivanov <neolit123@gmail.com>
2025-01-11 11:28:45 +00:00
bzsuni
fb47caa689 Update coredns to 1.12.0
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io>
2025-01-08 03:34:41 +00:00
Paco Xu
02fbcb4e69 kubeadm: should not warn on non-detect sandbox image 2025-01-06 14:23:18 +08:00
carlory
00a7849ef9 kubeadm: add preflight check for losetup on Linux nodes
kubeadm: remove preflight check for nsenter on Linux nodes

Signed-off-by: carlory <baofa.fan@daocloud.io>
2025-01-03 11:42:13 +08:00
Kubernetes Prow Robot
87cf098f34 Merge pull request #129452 from SataQiu/fix-20250102
kubeadm: fix a bug where the 'node.skipPhases' in UpgradeConfiguration is not respected by 'kubeadm upgrade node' command
2025-01-02 12:00:14 +01:00
bzsuni
df503e54c8 Update etcd from v3.5.16 to v3.5.17
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io>
2025-01-02 10:20:42 +00:00
SataQiu
4c6deed07e kubeadm: fix a bug where the node.skipPhases in UpgradeNodeConfiguration is not respected by 'kubeadm upgrade node' 2025-01-02 17:44:05 +08:00
Kubernetes Prow Robot
3c229949f9 Merge pull request #129401 from pacoxu/kubeadm-upgrade-precheck
kubeadm: add kernel version check for upgrade
2025-01-02 03:50:13 +01:00
SataQiu
2fd16abbe8 kubeadm: bump supported etcd version 2024-12-31 10:11:38 +08:00
Paco Xu
2c305d71f0 kubeadm: add system verification check(including kernel version check) for upgrade 2024-12-30 18:17:56 +08:00
Lubomir I. Ivanov
b406ba5cc3 kubeadm: skip disabled addons in clusterconfig on upgrade
If an addon is disabled in the ClusterConfiguration skip it
on upgrade in the repsective subphase of 'addons'.
2024-12-28 12:20:00 +02:00
Kubernetes Prow Robot
80379db5d5 Merge pull request #129279 from HirazawaUi/remove-cri-anno
[NodeLocalCRISocket]: remove kubeadm.alpha.kubernetes.io/cri-socket annotation when kubeadm upgrade
2024-12-21 09:46:09 +01:00
HirazawaUi
7c515cd1cb remove kubeadm.alpha.kubernetes.io/cri-socket annotation when kubeadm upgrade 2024-12-21 14:57:57 +08:00
Kubernetes Prow Robot
646e7f04d9 Merge pull request #129317 from carlory/kubeadm-touch
kubeadm: remove preflight check for `touch` on Linux nodes.
2024-12-21 05:00:09 +01:00
Kubernetes Prow Robot
fab7593a29 Merge pull request #129278 from HirazawaUi/remove-kubelet-args
[NodeLocalCRISocket]:  Remove `container-runtime-endpoint` flag when kubeadm upgrade
2024-12-20 11:26:08 +01:00
carlory
4396511e43 kubeadm: removed preflight check for touch on Linux nodes.
Signed-off-by: carlory <baofa.fan@daocloud.io>
2024-12-20 11:28:30 +08:00
HirazawaUi
769e7990d6 remove container-runtime-endpoint flag when upgrade 2024-12-20 08:03:10 +08:00
Stephen Kitt
efdb735750 kubeadm: fix idempotency retain, address deprecation
CreateOrRetain is supposed to operate on an object name which isn't
necessarily the given object's name (for use in migrations), this
restores that feature.

Replace all uses of deprecated functions with their generic variants.

Providing the context externally isn't useful right now, drop it from
the new functions and use context.Background() where needed.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2024-12-19 14:29:09 +01:00
Stephen Kitt
db4c509e71 kubeadm: generalise CreateOrUpdate etc.
This uses generics to generalise the various CreateOrUpdate,
CreateOrRetain etc. functions. Where appropriate, the context is added
as an initial argument to the new functions.

ConfigMapMutator isn't used anywhere else, so it's dropped in favour
of the private objectMutator added in this commit.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2024-12-19 09:19:29 +01:00
Paco Xu
fd8a61ae1b kubeadm: update owners for v1.33 2024-12-17 17:16:39 +08:00
Kubernetes Prow Robot
e818574885 Merge pull request #129131 from pacoxu/kubeadm-iptables-check
kubeadm: remove iptables/ip/tc/ethtool binary preflight check
2024-12-14 08:14:53 +01:00
Paco Xu
39e7db9cc9 kubeadm: remove iptables/ip/tc/ethtool binary preflight check 2024-12-13 16:11:07 +08:00
Kubernetes Prow Robot
e8615e2712 Merge pull request #129054 from pohly/remove-import-name
remove import doc comments
2024-12-12 09:58:35 +01:00
Kubernetes Prow Robot
f83f78dbd5 Merge pull request #129141 from vlttnv/patch-1
Fix grammar mistake in kubeadm config v1beta4
2024-12-12 06:41:02 +00:00
Kubernetes Prow Robot
1f415b4e13 Merge pull request #129006 from kokes/kubeadm_rereading_kubeconfigs
kubeadm: Do not read kubeconfig from disk repeatedly in the init phase
2024-12-12 05:28:38 +00:00
Valentin
9bd5dc86d3 Fix grammar mistake in kubeadm config v1beta4
Fix grammar mistake in kubeadm configuration documentation - use "a YAML" instead of "an YAML" since YAML starts with a consonant sound.
2024-12-10 14:00:38 +02:00