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

CKA study material · question 273 of 1000

For DNS to publish records for a Pod's subdomain, what else must exist?

  1. A CoreDNS rewrite rule
  2. An ExternalName Service for the namespace
  3. A headless Service in the same namespace named like the subdomain
  4. A ClusterIP Service named like the hostname
Show the answer

Answer: C. A headless Service in the same namespace named like the subdomain

A headless Service with the same name as the subdomain makes cluster DNS return records for the Pod's FQDN.

Source: DNS for Services and Pods (Kubernetes) — Pod's hostname and subdomain fields

Challenge yourself on this topic → Study as cards