[init] Using Kubernetes version: v1.25.16
[preflight] Running pre-flight checks
error execution phase preflight: [preflight] Some fatal errors occurred:
[ERROR KubeletVersion]: the kubelet version is higher than the control plane version. This is not a supported version skew and may lead to a malfunctional cluster. Kubelet version: "1.28.2" Control plane version: "1.25.16"
[ERROR Port-2379]: Port 2379 is in use
[ERROR Port-2380]: Port 2380 is in use
[ERROR DirAvailable--var-lib-etcd]: /var/lib/etcd is not empty
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`
To see the stack trace of this error execute with --v=5 or higher
我试图在远程 ubuntu 服务器上创建集群
您的 kubeadm 所需的端口已被占用,可能是因为您之前运行了 kubeadm init 命令。要获取新的连接令牌,您可以使用以下命令:
kubeadm token create --print-join-command
如果您看到错误消息,请尝试运行这些命令以重新重置并初始化:
sudo kubeadm reset
sudo kubeadm init