Skip to content

Commit f971679

Browse files
committed
bootstrap-kind: clear DNS search domains in kind config
Podman injects "dns.podman" into node resolv.conf, which leaks into pod DNS config. CoreDNS cannot resolve this domain, causing 8s timeouts per lookup and killing pods that rely on fast DNS during init (e.g. zookeeper).
1 parent be70bf1 commit f971679

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
kind: Cluster
2+
apiVersion: kind.x-k8s.io/v1alpha4
3+
networking:
4+
dnsSearch: []
5+
nodes:
6+
- role: control-plane
7+
image: kindest/node:v1.32.8@sha256:abd489f042d2b644e2d033f5c2d900bc707798d075e8186cb65e3f1367a9d5a1
8+
kubeadmConfigPatches:
9+
- |
10+
kind: InitConfiguration
11+
nodeRegistration:
12+
kubeletExtraArgs:
13+
node-labels: "ingress-ready=true"
14+
- |
15+
kind: ClusterConfiguration
16+
apiServer:
17+
extraArgs:
18+
event-ttl: "4h0m0s"
19+
extraMounts:
20+
- hostPath: /home/user/src/Zenko/artifacts/data
21+
containerPath: /data
22+
- hostPath: /home/user/.docker/config.json
23+
containerPath: /var/lib/kubelet/config.json
24+
extraPortMappings:
25+
- containerPort: 80
26+
hostPort: 80
27+
protocol: TCP
28+
- containerPort: 443
29+
hostPort: 443
30+
protocol: TCP
31+
- role: worker
32+
image: kindest/node:v1.32.8@sha256:abd489f042d2b644e2d033f5c2d900bc707798d075e8186cb65e3f1367a9d5a1
33+
extraMounts:
34+
- hostPath: /home/user/src/Zenko/artifacts/data
35+
containerPath: /data
36+
- hostPath: /home/user/.docker/config.json
37+
containerPath: /var/lib/kubelet/config.json
38+
- role: worker
39+
image: kindest/node:v1.32.8@sha256:abd489f042d2b644e2d033f5c2d900bc707798d075e8186cb65e3f1367a9d5a1
40+
extraMounts:
41+
- hostPath: /home/user/src/Zenko/artifacts/data
42+
containerPath: /data
43+
- hostPath: /home/user/.docker/config.json
44+
containerPath: /var/lib/kubelet/config.json

0 commit comments

Comments
 (0)