During the installation or operation of k8s cluster, you may encounter problems of "error getting node"
, such as:
"Error getting node" err="node \"master\" not found"
dial tcp 10.8.126.46:6443: connect: connection refused"
"Error getting node" err="node \"master\" not found"
"Error getting node" err="node \"master\" not found"
The way to troubleshoot such problems is to execute the following commands to check the specific error causes:
journalctl -xeu kubelet
Find the initial error and deal with it according to different errors
according to the problems I have encountered, there are mainly the following possibilities:
- No swap memory disabled
- There is a problem with hostname setting or hosts setting (other bloggers listed reasons)
- The container and k8s version is not compatible (other bloggers listed reasons)