Gitlab Runner: ERROR: Error cleaning up secrets: resource name may not be empty


For a month ago I was started to face this issue in gitlab runners:

Checking for jobs… received job=389596777 repo_url= runner=QR7fyCNt
ERROR: Job failed (system failure): Post https://:443/api/v1/namespaces/gitlab/secrets: dial tcp :443: connect: connection refused duration=4.867572ms job=<JOB_NUMBER> project=<PROJECT_NUMBER> runner=QR7fyCNt

I’m using the latest image from gitlab-runner:


work around: I delete the gitlab-runner POD in kubernetes and retry the process.
For now it’s working, but i really need to know how to investigate more deeper to identify the root cause and fix it.