Question 590
At Northstar finance, in an isolated training cluster during a scheduled maintenance rehearsal: A reviewed CoreDNS ConfigMap change needs a controlled DNS Deployment restart in kube-system; a healthy rollout is required. Work only within the stated target and verify before declaring success. Which Kubernetes behavior best explains the required change or diagnosis?
Explanation
Correct Answer
CoreDNS Pods need a restart when configuration update behavior requires it; a Deployment restart replaces Pods under its rollout strategy. This explains the stated condition. The corresponding action is: Run kubectl -n kube-system rollout restart deployment/coredns after the approved change. The direct acceptance evidence is: Run kubectl -n kube-system rollout status deployment/coredns then test a Service lookup from ledger.
Incorrect Answers
Cluster DNS should resolve Service names inside its configured domain; host-side DNS results do not prove in-cluster resolution. That explanation applies to a different technical failure. Here the controlling principle is: CoreDNS Pods need a restart when configuration update behavior requires it; a Deployment restart replaces Pods under its rollout strategy.
The offered statement is true for this other mechanism: DNS resolution may fail when CoreDNS replicas are unhealthy even when the requested Service and Pod endpoints exist. It does not explain the facts described here, which follow from: CoreDNS Pods need a restart when configuration update behavior requires it; a Deployment restart replaces Pods under its rollout strategy.
This principle describes a separate cause: NetworkPolicy egress rules are additive and DNS lookup requires permitted traffic to the DNS server, not only a correct Service record. The reported condition is governed by: CoreDNS Pods need a restart when configuration update behavior requires it; a Deployment restart replaces Pods under its rollout strategy. The two mechanisms should not be conflated.