From 0a1e5d1411fb28d4dde68e92740d133819dea7e5 Mon Sep 17 00:00:00 2001 From: Timo Behrendt Date: Sun, 5 Oct 2025 20:50:08 +0200 Subject: [PATCH] feat: add coredns config --- coredns/coredns-config.yaml | 47 +++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 coredns/coredns-config.yaml diff --git a/coredns/coredns-config.yaml b/coredns/coredns-config.yaml new file mode 100644 index 0000000..d37315c --- /dev/null +++ b/coredns/coredns-config.yaml @@ -0,0 +1,47 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: coredns + namespace: kube-system +data: + Corefile: | + t00n.de:53 { + errors + forward . 192.168.0.1 192.168.0.9 192.168.0.10 + cache 300 + reload + } + + t000-n.de:53 { + errors + forward . 192.168.0.1 192.168.0.9 192.168.0.10 + cache 300 + reload + } + + .:53 { + errors + health + ready + kubernetes cluster.local in-addr.arpa ip6.arpa { + pods insecure + fallthrough in-addr.arpa ip6.arpa + } + hosts /etc/coredns/NodeHosts { + ttl 60 + reload 15s + fallthrough + } + prometheus :9153 + forward . /etc/resolv.conf + cache 30 + loop + reload + loadbalance + import /etc/coredns/custom/*.override + } + import /etc/coredns/custom/*.server + NodeHosts: | + 192.168.0.50 k3sh0 + 192.168.0.51 k3sh1 + 192.168.0.52 k3sh2