Kubernetes DNS and NetworkPolicy Bug Can Silently Disable Prometheus Heartbeat Alerts
A subtle interaction between Kubernetes' default ndots:5 DNS resolver behavior and namespace-scoped NetworkPolicies can cause Pushgateway heartbeat metrics to stop updating without triggering any alerts. When a pod's fully qualified service name contains fewer than five dots, the resolver walks through search domain suffixes before attempting the absolute name, potentially matching a wildcard DNS record and routing traffic to the wrong endpoint. In a common homelab or internal cluster setup, this misdirects monitoring pushes to an ingress controller instead of Pushgateway, leaving timestamps stale while dashboards show no errors. The failure is especially dangerous because it targets the monitoring infrastructure itself, meaning no alert fires and no visible symptom surfaces. The issue only manifests when three conditions align: the default ndots:5 DNS policy, a wildcard internal DNS record, and a push-based alerting pattern like Prometheus with Pushgateway.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in