# Get "http://localhost:10248/healthz": dial tcp \[::1\]:10248: connect: connection refused

**URL:** <https://discuss.kubernetes.io/t/get-http-localhost-10248-healthz-dial-tcp-1-connect-connection-refused/29421>\
**Category:** General Discussions\
**Tags:** development\
**Created:** [August 17, 2024, 5:54pm UTC](https://discuss.kubernetes.io/t/get-http-localhost-10248-healthz-dial-tcp-1-connect-connection-refused/29421 "2024-08-17T17:54:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rohit\_Khurana](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/rohit_khurana/32/13574_2.png) [@Rohit\_Khurana](https://discuss.kubernetes.io/u/Rohit_Khurana)\
**Post date:** [August 17, 2024, 5:54pm UTC](https://discuss.kubernetes.io/t/get-http-localhost-10248-healthz-dial-tcp-1-connect-connection-refused/29421/1 "2024-08-17T17:54:50Z")

</div>

I have one master node and one worker node  
Am. trying to join the master node from worker node

sudo kubeadm join :6443 --token --cri-socket unix:///var/run/crio/crio.sock

but getting following error

```auto
[preflight] Running pre-flight checks
[preflight] Reading configuration from the cluster...
[preflight] FYI: You can look at this config file with 'kubectl -n kube-system get cm kubeadm-config -o yaml'
[kubelet-start] Writing kubelet configuration to file "/var/lib/kubelet/config.yaml"
[kubelet-start] Writing kubelet environment file with flags to file "/var/lib/kubelet/kubeadm-flags.env"
[kubelet-start] Starting the kubelet
[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 [::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 [::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 [::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 [::1]:10248: connect: connection refused.

```

can someone help what can be the possible issue  
Kubelet is running on both master and worker node  
i checked the connection with master node , this is returning ok

```auto
curl -sSL https://<master-ip>:6443/healthz --insecure

```

### Cluster information:

Kubernetes version:v1.28.1  
Cloud being used: GCP  
Host OS: Ubuntu
