See issue 1148 at github.com/kubernetes-sigs/kind
Run main.sh
which will:
- creates a 3 worker cluster
- deploys busybox
- does an nslookup (per the Kubernetes docs on debugging DNS)
- prints out various output, versions, and config files
My results:
creating cluster: test
waiting for a 'ready' node...
done
deploying busybox
pod/busybox created
waiting for a 'ready' pod...
waiting for a 'ready' pod...
waiting for a 'ready' pod...
waiting for a 'ready' pod...
waiting for a 'ready' pod...
waiting for a 'ready' pod...
executing kubernetes.default lookup:
Server: 10.96.0.10
Address 1: 10.96.0.10 kube-dns.kube-system.svc.cluster.local
Name: kubernetes.default
Address 1: 23.195.69.106 a23-195-69-106.deploy.static.akamaitechnologies.com
Address 2: 23.202.231.166 a23-202-231-166.deploy.static.akamaitechnologies.com
printing busybox /etc/resolv.conf/:
search default.svc.cluster.local svc.cluster.local cluster.local localdomain lan1
nameserver 10.96.0.10
options ndots:5
printing busybox /etc/hosts/:
# Kubernetes-managed hosts file.
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
fe00::0 ip6-mcastprefix
fe00::1 ip6-allnodes
fe00::2 ip6-allrouters
10.244.2.2 busybox
printing verions:
GO: go version go1.13.1 linux/amd64
GIT: git version 2.20.1
PYTHON: Python 2.7.16
KIND: kind version 0.6.1
DOCKER: Docker version 19.03.1, build 74b1e89
KUBECTL: Client Version: v1.16.2
printing host /etc/hosts:
127.0.0.1 localhost.localdomain localhost
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
printing hosts /etc/resolv.conf:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
# 127.0.0.53 is the systemd-resolved stub resolver.
# run "systemd-resolve --status" to see details about the actual nameservers.
nameserver 127.0.0.53
search localdomain lan1
destroying cluster: test
done