<p>I have deployed a Gitlab Runner in our Kubernetes Cluster with the <a href="https://docs.gitlab.com/runner/install/kubernetes.html#installing-gitlab-runner-using-the-helm-chart" rel="nofollow noreferrer">Helm Chart</a></p>

<p>Now i try to build a image with kaniko. But the runner can not resolve the url of my gitlab server:</p>

<pre><code>Running with gitlab-runner 12.3.0 (a8a019e0)
on gitlab-runner-gitlab-runner-d7996895b-7lpnh nY2nib3b
Using Kubernetes namespace: gitlab
Using Kubernetes executor with image gcr.io/kaniko-project/executor:debug ...
Waiting for pod gitlab/runner-ny2nib3b-project-2-concurrent-0w2ffw to be running, status is Pending
Running on runner-ny2nib3b-project-2-concurrent-0w2ffw via gitlab-runner-gitlab-runner-d7996895b-7lpnh...
Fetching changes...
Initialized empty Git repository in /builds/my-repo/.git/
Created fresh repository.
fatal: unable to access 'https://gitlab-ci-token:[MASKED]@XXX.XY:8443/my-repo.git/': Could not resolve host: XXX.XY
ERROR: Job failed: command terminated with exit code 1
</code></pre>

<p>When i connect to the pod and try <code>nslookup XXX.XY</code>:</p>

<p><code>nslookup: can't resolve 'XXX.XY': Name does not resolve</code></p>

<p>I have already solved some problems but here I have no idea. DNS works in other PODs.</p>

<p>Edit:</p>

<p>on a working busybox pod the output of nslooup is</p>

<pre><code>nslookup google.de
Server:    10.96.0.10
Address 1: 10.96.0.10 kube-dns.kube-system.svc.cluster.local

Name:      google.de
Address 1: 2a00:1450:4001:816::2003 fra16s07-in-x03.1e100.net
Address 2: 172.217.18.3 fra15s28-in-f3.1e100.net
</code></pre>

micha
<p>If you are using v12.3.0, then you ran into a bug: <a href="https://gitlab.com/gitlab-org/charts/gitlab-runner/issues/96" rel="nofollow noreferrer">https://gitlab.com/gitlab-org/charts/gitlab-runner/issues/96</a></p>
