Skip to content

Commit 7aeb15f

Browse files
committed
chore: disable coredns cache for cluster domain
Ref: kubernetes/kubernetes#128359 Also bring in small changes from upstream CoreDNS config. Signed-off-by: Noel Georgi <git@frezbo.dev>
1 parent d8b6521 commit 7aeb15f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

internal/app/machined/pkg/controllers/k8s/templates/core-dns-template.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,17 @@ data:
6565
kubernetes {{ .ClusterDomain }} in-addr.arpa ip6.arpa {
6666
pods insecure
6767
fallthrough in-addr.arpa ip6.arpa
68+
ttl 30
69+
}
70+
forward . /etc/resolv.conf {
71+
max_concurrent 1000
6872
}
69-
forward . /etc/resolv.conf
7073
cache 30
74+
{{- if .ClusterDomain }} {
75+
disable success {{ .ClusterDomain }}
76+
disable denial {{ .ClusterDomain }}
77+
}
78+
{{- end }}
7179
loop
7280
reload
7381
loadbalance

0 commit comments

Comments
 (0)