ERROR: Registering runner... failed dial tcp: lookup gitlab.default.svc.cluster.local on 10.96.0.10:53: no such host
[root@kube-master gitlab]# kubectl describe pod gitlab-gitlab-runner-7ff5f48d-cvr5j
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 30m default-scheduler Successfully assigned default/gitlab-gitlab-runner-7ff5f48d-cvr5j to kube-node3
Normal Pulling 30m kubelet, kube-node3 pulling image "busybox:latest"
Normal Pulled 30m kubelet, kube-node3 Successfully pulled image "busybox:latest"
Normal Created 30m kubelet, kube-node3 Created container
Normal Started 30m kubelet, kube-node3 Started container
Normal Pulled 29m (x4 over 30m) kubelet, kube-node3 Container image "gitlab/gitlab-runner:alpine-v11.5.0" already present on machine
Normal Created 29m (x4 over 30m) kubelet, kube-node3 Created container
Normal Started 29m (x4 over 30m) kubelet, kube-node3 Started container
Warning BackOff 25s (x146 over 30m) kubelet, kube-node3 Back-off restarting failed container
[root@kube-master gitlab]# kubectl logs gitlab-gitlab-runner-7ff5f48d-cvr5j
Runtime platform arch=amd64 os=linux pid=11 revision=3afdaba6 version=11.5.0
WARNING: Running in user-mode.
WARNING: The user-mode requires you to manually start builds processing:
WARNING: $ gitlab-runner run
WARNING: Use sudo for system-mode:
WARNING: $ sudo gitlab-runner...
ERROR: Registering runner... failed runner=FzsZN8h2 status=couldn't execute POST against https://gitlab.default.svc.cluster.local/api/v4/runners: Post https://gitlab.default.svc.cluster.local/api/v4/runners: dial tcp: lookup gitlab.default.svc.cluster.local on 10.96.0.10:53: no such host
PANIC: Failed to register this runner. Perhaps you are having network problems