How Do You Troubleshoot This Problem “[ERROR KubeletVersion]: couldn’t get kubelet version: executable file not found in $PATH”?

Problem scenario
You run this command: sudo kubeadm init

You get this problem: "[ERROR KubeletVersion]: couldn't get kubelet version: executable file not found in $PATH"

What should you do?

Solution
Install kubelet. See this posting you need assistance. (If it is a Red Hat distribution of Linux, you can try How Do You Install kubectl, kubeadm, and kubelet on a CentOS/RHEL/Fedora Server?.)

If it was already installed, use this command to find it: sudo find / -name kubelet

Then either move the file to /usr/bin/ or run a command like this:
sudo ln -s /path/to/kublet /usr/bin/ # replace "path/to" with the path to the file found above.

Now try your kubeadm command again.

Leave a comment

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