Skip to content
Tagged articles

ndots

5 articles · Page 1 of 1

Fix Kubernetes Pod DNS Resolution Permanently: CoreDNS Config Over Manual Edits

This guide explains why manually editing /etc/resolv.conf in Kubernetes Pods fails, details how kubelet generates DNS configuration via dnsPolicy and dnsConfig, and provides three solutions: modifying CoreDNS ConfigMap for cluster-wide fixes, per-Pod dnsConfig for exceptions, and correct dnsPolicy for hostNetwork Pods, plus the ndots:5 performance pitfall.

CoreDNSDNSKubernetes
0 likes · 10 min read
Fix Kubernetes Pod DNS Resolution Permanently: CoreDNS Config Over Manual Edits
Ops Development Stories
Ops Development Stories
Feb 23, 2022 · Cloud Native

Why Your Kubernetes Pod Can't Reach the Server: DNS Search Domain Pitfalls and Fixes

An agent service running in a Kubernetes pod appeared healthy but failed to receive heartbeats due to DNS resolution errors caused by an unintended 'HOST' search domain, leading to incorrect IP resolution; the article details the investigation, explains Kubernetes DNS mechanics, and shows how adjusting ndots or using fully qualified names resolves the issue.

DNSKubernetesPod
0 likes · 18 min read
Why Your Kubernetes Pod Can't Reach the Server: DNS Search Domain Pitfalls and Fixes