[reset] WARNING: Changes made to this host by 'kubeadm init' or 'kubeadm join' will be reverted. [reset] Are you sure you want to proceed? [y/N]: y [reset] Deleting contents of directories: [/etc/kubernetes/manifests /var/lib/kubelet /etc/kubernetes/pki] [reset] Deleting files: [/etc/kubernetes/admin.conf /etc/kubernetes/kubelet.conf ...] The reset process does not clean CNI configuration. To do so, you must remove /etc/cni/net.d
验证清理完成:
1 2 3 4 5 6
# 关键配置文件应该已被删除 ls /etc/kubernetes/kubelet.conf # 应显示:No such file or directory
sudo systemctl status kubelet # 应显示:inactive (dead)
[preflight] Running pre-flight checks [preflight] Reading configuration from the cluster... [preflight] FYI: You can look at this config filewith'kubectl -n kube-system get cm kubeadm-config -o yaml' [kubelet-start] Writing kubelet configuration to file"/var/lib/kubelet/config.yaml" [kubelet-start] Writing kubelet environment filewith flags to file"/var/lib/kubelet/kubeadm-flags.env" [kubelet-start] Starting the kubelet [kubelet-start] Waiting for the kubelet to perform the TLS Bootstrap...
This node has joined the cluster: * Certificate signing request was sent to apiserver and a response was received. * The Kubelet was informed of the new secure connection details.
Run 'kubectl get nodes'on the control-plane to see this node join the cluster.
关键验证点:
✅ 无报错信息
✅ 显示 “This node has joined the cluster”
三、验证升级结果
3.1 检查节点状态
在 master 节点执行:
1
kubectl get nodes -o wide
预期输出:
1 2 3 4
NAME STATUS ROLES AGE VERSION master-gz-amd64-ubuntu-1 Ready control-plane 60d v1.32.3 work-gz-amd64-ubuntu-1 Ready <none> 60d v1.32.9 gateway-gz-amd64-ubuntu-1 Ready <none> 30s v1.32.9 ✅
error execution phase kubelet-start: a Nodewith name "gateway-gz-amd64-ubuntu-1"and status "Ready" already exists in the cluster. You must delete the existing Nodeor change the name of this new joining Node
[ERROR FileAvailable--etc-kubernetes-kubelet.conf]: /etc/kubernetes/kubelet.conf already exists [ERROR Port-10250]: Port 10250 is in use [ERROR FileAvailable--etc-kubernetes-pki-ca.crt]: /etc/kubernetes/pki/ca.crt already exists