How Do You Troubleshoot the Kubernetes Error “[ERROR Port-10250]: Port 10250 is in use”?

Problem scenario
You are trying to run a kubeadm command. But you get this error:

[preflight] Running pre-flight checks
error execution phase preflight: [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=...

What should you do?

Remove the kubelet that snap installed; this assumes that you have two installations of kubelet. Here is the command:

sudo snap remove kubelet

Leave a comment

Your email address will not be published. Required fields are marked *