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

CKA study material · question 769 of 1000

A Pod in namespace test cannot resolve the name data, which is a Service in namespace prod. What should the client use?

  1. data.prod
  2. prod.data
  3. data with a dnsPolicy of Default
  4. data.svc.cluster.local
Show the answer

Answer: A. data.prod

An unqualified query is completed against the Pod's own namespace first, so reaching another namespace means naming it — data.prod, or the fully qualified data.prod.svc.cluster.local.

Source: DNS for Services and Pods (Kubernetes) — Namespaces of Services

Challenge yourself on this topic → Study as cards