Error execution phase kubelet-start: a Node with name ... and status Ready already exists
Posted 云灬沙
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Error execution phase kubelet-start: a Node with name ... and status Ready already exists相关的知识,希望对你有一定的参考价值。
使用kubeadm部署K8S的时候出现了这样的问题,因为使用的是虚拟机复制,Node是Master的复制,
kubeadm 默认使用主机名作为节点名,当您从主服务器克隆工作程序时,它们具有相同的主机名。
解决方案:
1.给node一个新的hostname通过hostnamectl或其他工具
2.在集群加入Node时使用–node-name来标识一下
例如可以先执行这一句再加入
hostnamectl set-hostname k8s-node1
记得使用
kubeadm reset
参考链接:https://stackoverflow.com/questions/66472399/error-execution-phase-kubelet-start-a-node-with-name-and-status-ready-alrea
以上是关于Error execution phase kubelet-start: a Node with name ... and status Ready already exists的主要内容,如果未能解决你的问题,请参考以下文章