Gitlab running reporting Job Failed saying connection refused to the kubelet IP

I have seen from time to time the gitlab runner complaining because there are some jobs failing with a strange issue

WARNING: Job failed: command terminated with exit code 137  duration=2m46.061025042s job=134241479 project=8149228 runner=gs_eYcL_
ERROR: Job failed (system failure): error dialing backend: dial tcp connect: connection refused  duration=36.019613829s job=134276350 project=7260414 runner=gs_eYcL_

The IP and the port displayed belongs to the kubelet. But I dont get it because I supposed the runner would talk with the Kubernetes API but no against the kubelet one. Anyone has seen this message before?

1 Like

I also have this problem.