Study. uk . com
  1. Home
  2. All questions
  3. Question 276

CKA study material · question 276 of 1000

A hostNetwork Pod with dnsPolicy ClusterFirst cannot resolve Service names. What should be set?

  1. A custom search domain in resolv.conf
  2. dnsPolicy None with a dnsConfig
  3. hostNetwork false
  4. dnsPolicy ClusterFirstWithHostNet
Show the answer

Answer: D. dnsPolicy ClusterFirstWithHostNet

A hostNetwork Pod on ClusterFirst silently falls back to the node's resolver; ClusterFirstWithHostNet keeps cluster DNS.

Source: DNS for Services and Pods (Kubernetes) — Pod's DNS Policy

Challenge yourself on this topic → Study as cards