How Do You Install Troubleshoot the Kubernetes Error “dial tcp x.x.x.x:10248 connection refused”?

Problem scenario
You are trying to run "kubeadm init", but you get this error:

"failed with error: Get "http://localhost:10248/healthz": dial tcp connect: connection refused."

What should you do?

Is the kubelet service running? Run this: sudo systemctl status kubelet

To install the kubelet, see this posting for How Do You Install the kubelet on any type of Linux?

You may want to see this posting too. You may want to check if there is a firewall issue with this posting.

Leave a comment

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