-->
  • Recent Articles

    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.


    No comments