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

CKA study material · question 774 of 1000

A Pod sets dnsPolicy to None. What must accompany it?

  1. hostNetwork set to true
  2. A dnsConfig supplying at least one nameserver
  3. An entry in the node's /etc/resolv.conf
  4. A NetworkPolicy allowing egress to CoreDNS
Show the answer

Answer: B. A dnsConfig supplying at least one nameserver

dnsPolicy None makes the Pod ignore the cluster's DNS settings entirely, so everything has to come from its own dnsConfig, which must then list at least one nameserver.

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

Challenge yourself on this topic → Study as cards