k8s系列问题:[ERROR Port-10250]: Port 10250 is in use
preflight] Some fatal errors occurred: [ERROR Port-10250]: Port 10250 is in use [preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...` error execution phase preflight k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/workflow.(*Runner).Run.func1 cmd/kubeadm/app/cmd/phases/workflow/runner.go:260
解决方法
(图片来源网络,侵删)
-
在启动命令添加 --ignore-preflight-errors=Port-10250 sudo kubeadm init --config kubeadm-config.yaml --v=5 --ignore-preflight-errors=Port-10250
-
查看端口是否真的被占用了sudo lsof -i :10250,如果占用了kill -9 pid
-
sudo kubeadm reset
文章版权声明:除非注明,否则均为主机测评原创文章,转载或复制请以超链接形式并注明出处。