-->

DEVOPSZONES

  • Recent blogs

    Problem joining node to Kubernetes cluster: dial tcp 127.0.0.1:10248: connect: connection refused.

     While trying to setup Kubernetes, you may face this issue while joining the worker nodes to Kubernetes Cluster. 

    Error:

    [kubelet-start] Waiting for the kubelet to perform the TLS Bootstrap...
    [kubelet-check] Initial timeout of 40s passed.
    [kubelet-check] It seems like the kubelet isn't running or healthy.
    [kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get "http://localhost:10248/healthz": dial tcp 127.0.0.1:10248: connect: connection refused.
    [kubelet-check] It seems like the kubelet isn't running or healthy.
    [kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get "http://localhost:10248/healthz": dial tcp 127.0.0.1:10248: connect: connection refused.
    [kubelet-check] It seems like the kubelet isn't running or healthy.
    [kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get "http://localhost:10248/healthz": dial tcp 127.0.0.1:10248: connect: connection refused.

    kubernetes error node join
    kubernetes error node join


    The most common issue is a cgroup driver missmatch. You can look at the kubelet logs. The log should look like this. 

    kubelet: failed to run Kubelet: failed to create kubelet: misconfiguration: kubelet cgroup driver: "systemd" is different from docker cgroup driver: "cgroupfs"

    To solve that Issue Please follow this document.

    After you solve the Kubelet issue , you should be able to join the worker Node. If not try following steps:

    1. Reset the kubeadm config:

    #kubeadm reset

    2. Restart the docker and Kubelet service

    #systemctl restart docker

    #systemctl restart kubelet

    3. Then Join the node to cluster.


    1 comment:

    1. Hi,
      Getting the same error. could you pls help in resolving the issue.
      E0210 17:38:40.925275 17361 server.go:292] "Failed to run kubelet" err="failed to run Ku
      systemd[1]: Unit kubelet.service entered failed state.
      systemd[1]: kubelet.service failed.

      ReplyDelete