From 1ede429c5baf462ed332dbc21ad9817bac3a6a55 Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Sat, 25 Jan 2025 17:14:07 +0000 Subject: [PATCH] add corefile config for coredns [ci skip] --- corefils.yaml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 corefils.yaml diff --git a/corefils.yaml b/corefils.yaml new file mode 100644 index 00000000..0ff1f1d3 --- /dev/null +++ b/corefils.yaml @@ -0,0 +1,42 @@ +apiVersion: v1 +data: + Corefile: | + .:53 { + log + errors + health { + lameduck 5s + } + ready + kubernetes cluster.local in-addr.arpa ip6.arpa { + pods insecure + fallthrough in-addr.arpa ip6.arpa + ttl 30 + } + prometheus :9153 + #forward . 1.1.1.1 + forward . 10.0.20.1 + #forward . /etc/resolv.conf + cache { + success 10000 300 6 + denial 10000 300 60 + } + loop + reload + loadbalance + } + viktorbarzin.lan:53 { + log + errors + #forward . 10.102.184.76 + forward . 10.0.20.101:30053 # this must be the same as the technitium nodeport svc + #forward . technitium-dns.technitium.svc.cluster.local + cache { + success 10000 300 6 + denial 10000 300 60 + } + } +kind: ConfigMap +metadata: + name: coredns + namespace: kube-system