GKE Gitlab - ERROR: Registering runner... failed
Hello,
I followed this documentation to install Gitlab in GKE : https://docs.gitlab.com/charts/installation/deployment.html
This is the helm command that I used to install Gitlab in GKE:
helm install --name gitlab-ss gitlab/gitlab --set certmanager-issuer.email=email-id --set global.hosts.domain=domain-name --set global.hosts.externalIP=static-ip
When I do Kubectl get pods I get the following output:
NAME READY STATUS RESTARTS
cm-acme-http-solver-4fkcc 1/1 Running 0
cm-acme-http-solver-84mlf 1/1 Running 0
cm-acme-http-solver-rqghk 1/1 Running 0
gitlab-ss-certmanager-56f985c8cc-v74b2 1/1 Running 0
gitlab-ss-gitaly-0 1/1 Running 0
gitlab-ss-gitlab-exporter-56d4947f4b-f78rv 1/1 Running 0
gitlab-ss-gitlab-runner-7499d486bc-sgr99 0/1 Running 3
gitlab-ss-gitlab-shell-7df6d89546-24rzd 1/1 Running 0
gitlab-ss-gitlab-shell-7df6d89546-7j6f8 1/1 Running 0
gitlab-ss-issuer.1-vpwzb 0/1 Completed 0
gitlab-ss-migrations.1-hs2jp 0/1 Completed 0
gitlab-ss-minio-675c79954f-ztsdq 1/1 Running 0
gitlab-ss-minio-create-buckets.1-zb7dk 0/1 Completed 0
gitlab-ss-nginx-ingress-controller-84f988ccc-bcmk5 1/1 Running 0
gitlab-ss-nginx-ingress-controller-84f988ccc-m8xrp 1/1 Running 0
gitlab-ss-nginx-ingress-controller-84f988ccc-vkx62 1/1 Running 0
gitlab-ss-nginx-ingress-default-backend-786bf897c5-6bzjp 1/1 Running 0
gitlab-ss-nginx-ingress-default-backend-786bf897c5-prj98 1/1 Running 0
gitlab-ss-postgresql-f57566498-27qxl 2/2 Running 0
gitlab-ss-prometheus-server-5f6b5b8bd4-d22gk 2/2 Running 0
gitlab-ss-redis-75669965c5-v8lrz 2/2 Running 0
gitlab-ss-registry-5d7544ff8c-8t887 1/1 Running 0
gitlab-ss-registry-5d7544ff8c-kplrc 1/1 Running 0
gitlab-ss-sidekiq-all-in-1-76c69d7747-nw2dv 1/1 Running 0
gitlab-ss-sidekiq-all-in-1-76c69d7747-rr2ph 1/1 Running 0
gitlab-ss-task-runner-67858986b4-bwrwm 1/1 Running 0
gitlab-ss-unicorn-564498d988-6n97f 2/2 Running 0
gitlab-ss-unicorn-564498d988-r69bj 2/2 Running 0
But the gitlab-runner pod keeps restarting, when I check for the logs I get the following error:
ERROR: Registering runner... failed runner=DJgilhX0 status=couldn't execute POST against http://gitlab.domain/api/v4/runners: Post http://gitlab.domain/api/v4/runners: dial tcp: lookup gitlab.domain on ip:53: no such host PANIC: Failed to register this runner. Perhaps you are having network problems
Here the ip that I have given is not the global.hosts.externalIP that I have set while installing through helm. I takes some other ip.
I have configured the global.hosts.domain and global.hosts.externalIP properly. Is there anything else I am supposed to do?