k8s系列问题:[ERROR Port-10250]: Port 10250 is in use

avatar
作者
猴君
阅读量:0
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

广告一刻

为您即时展示最新活动产品广告消息,让您随时掌握产品活动新动态!