Question 1040
At Horizon observability, in a disposable simulated environment during a monitored release window: Pod metrics-api in namespace observability resolves external names but cannot resolve local Service metrics-svc; check Pod DNS policy and Service FQDN. Work only within the stated target and verify before declaring success. Which operational control most directly prevents this failure or configuration drift?
Explanation
Correct Answer
Test DNS policy and search domains during application Pod template changes. This reduces recurrence of the specific operational failure. It reinforces the action: Run kubectl -n observability exec metrics-api -- cat /etc/resolv.conf and query metrics-svc.observability.svc.cluster.local from that Pod. The relevant mechanism is: Cluster DNS search domains and dnsPolicy control short-name resolution; resolving a public hostname is not proof of Kubernetes Service resolution.
Incorrect Answers
This routine guards against another mechanism: The Service routes to its configured backend target port; working DNS does not establish that the destination process is listening there. The recurring exposure in the current case is: Cluster DNS search domains and dnsPolicy control short-name resolution; resolving a public hostname is not proof of Kubernetes Service resolution. The matching preventive check is “Test DNS policy and search domains during application Pod template changes”.
The suggested review tracks a different technical risk: DaemonSets schedule according to node selection and toleration rules; unavailable node agents can break networking or logging on selected workers. Here the sustained control must address: Cluster DNS search domains and dnsPolicy control short-name resolution; resolving a public hostname is not proof of Kubernetes Service resolution. Choose “Test DNS policy and search domains during application Pod template changes”.
This routine guards against another mechanism: A Deployment selector identifies Pods it owns and is generally immutable after creation; patching Service selectors alone does not repair ownership. The recurring exposure in the current case is: Cluster DNS search domains and dnsPolicy control short-name resolution; resolving a public hostname is not proof of Kubernetes Service resolution. The matching preventive check is “Test DNS policy and search domains during application Pod template changes”.