Tagged articles
4 articles
Page 1 of 1
System Architect Go
System Architect Go
Sep 18, 2024 · Cloud Native

Understanding DNS and Its Configuration in Kubernetes

This article explains the fundamentals of DNS, its role as an application‑layer protocol, and how Kubernetes generates and manages each pod's /etc/resolv.conf through kubelet, covering nameserver, search, ndots options, dnsPolicy choices, and custom dnsConfig examples.

CoreDNSDNSKubernetes
0 likes · 6 min read
Understanding DNS and Its Configuration in Kubernetes
Liangxu Linux
Liangxu Linux
Feb 19, 2024 · Cloud Native

How CoreDNS and kubelet Configure /etc/resolv.conf in Kubernetes Pods

This article explains how CoreDNS runs on a Caddy‑based HTTP/2 server in Kubernetes, how kubelet injects the cluster DNS IP into each container’s /etc/resolv.conf, and how different dnsPolicy settings (Default, ClusterFirst, ClusterFirstWithHostNet, None) affect the resolv.conf configuration, including key options and examples.

CoreDNSKubernetesdnsPolicy
0 likes · 6 min read
How CoreDNS and kubelet Configure /etc/resolv.conf in Kubernetes Pods
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