Closed
Description
What did you do?
- How was the cluster created?
k3d create -n mycluster
- What did you do afterwards?
Start a pod and try a DNS query:
$ export KUBECONFIG="$(k3d get-kubeconfig --name='mycluster')"
$ kubectl run --restart=Never --rm -i --tty tmp --image=alpine -- sh
If you don't see a command prompt, try pressing enter.
/ # nslookup www.gmail.com
Server: 10.43.0.10
Address: 10.43.0.10:53
;; connection timed out; no servers could be reached
/ # cat /etc/resolv.conf
search default.svc.cluster.local svc.cluster.local cluster.local
nameserver 10.43.0.10
options ndots:5
/ # exit
Exec into the k3d
container and do the same DNS query:
docker exec -it k3d-endpoint-server sh
/ # nslookup www.gmail.com
Server: 127.0.0.11
Address: 127.0.0.11:53
Non-authoritative answer:
www.gmail.com canonical name = mail.google.com
mail.google.com canonical name = googlemail.l.google.com
Name: googlemail.l.google.com
Address: 172.217.164.101
Non-authoritative answer:
www.gmail.com canonical name = mail.google.com
mail.google.com canonical name = googlemail.l.google.com
Name: googlemail.l.google.com
Address: 2607:f8b0:4005:80b::2005
/ # cat /etc/resolv.conf
nameserver 127.0.0.11
options ndots:0
/ # exit
What did you expect to happen?
I would expect the pods in the k3d cluster to be able to resolve DNS names
Which OS & Architecture?
MacOS 10.15.3
Which version of k3d
?
- output of
k3d --version
k3d version v1.7.0
Which version of docker?
- output of
docker version
docker version
Client: Docker Engine - Community
Version: 19.03.5
API version: 1.40
Go version: go1.12.12
Git commit: 633a0ea
Built: Wed Nov 13 07:22:34 2019
OS/Arch: darwin/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 19.03.5
API version: 1.40 (minimum version 1.12)
Go version: go1.12.12
Git commit: 633a0ea
Built: Wed Nov 13 07:29:19 2019
OS/Arch: linux/amd64
Experimental: true
containerd:
Version: v1.2.10
GitCommit: b34a5c8af56e510852c35414db4c1f4fa6172339
runc:
Version: 1.0.0-rc8+dev
GitCommit: 3e425f80a8c931f88e6d94a8c831b9d5aa481657
docker-init:
Version: 0.18.0
GitCommit: fec3683
Metadata
Assignees
Type
Projects
Status
Done
Activity