fix(dns): cap hostNetwork/coredns pod DNS at 3 upstreams (DEV-527) #9
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/DEV-527-dns-config-hostnetwork"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Hetzner OS publishes 4 systemd-resolved upstreams and Kubernetes limits pod resolv.conf to 3 nameservers, so kubelet drops the 4th and fires a
DNSConfigFormingWarning event on every hostNetwork ordnsPolicy=Defaultpod restart. This PR pins the affected pods to 3 explicit upstreams (the same 3 kubelet was already picking), silencing the warning without changing DNS behaviour.Changes
apps/observability/patches/node-exporter-dns-config.yaml— strategic-merge patch addingdnsPolicy: None+dnsConfigto the kube-prometheus-stacknode-exporterDaemonSet (Helm-managed, applied by hand)apps/observability/patches/coredns-dns-config.yaml— companion patch for the k3s built-in CoreDNS Deployment.kubectl patchalone is not durable because the k3s addon controller revertsdnsPolicy; kept as a quick manual re-apply hookinfrastructure/k3s-manifests/coredns.yaml— the authoritative modified k3s addon manifest that must live at/var/lib/rancher/k3s/server/manifests/coredns.yamlon all 3 CP nodesinfrastructure/k3s-manifests/README-DEV-527.md— apply procedure, verification steps, and upgrade caveatApplied + verified on the live cluster
dnsPolicy=None; noDNSConfigFormingevents on the 9 current podsdnsPolicy=Noneand 3-nameserverdnsConfignslookup kubernetes.default+nslookup forgejo.basicstack.defrom a busybox pod)Test plan
kubectl -n observability rollout status daemonset kube-prometheus-stack-prometheus-node-exporterkubectl -n kube-system rollout status deployment corednsDNSConfigFormingevents on current node-exporter or coredns podsnslookup kubernetes.default.svc.cluster.localinside the clusternslookup forgejo.basicstack.de(external)View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.