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

CKA study material · question 271 of 1000

What is a Pod's hostname by default?

  1. The name of its owning workload
  2. Its metadata.name
  3. The name of its node
  4. Its IP address with dashes
Show the answer

Answer: B. Its metadata.name

A Pod's hostname is its metadata.name unless the optional spec.hostname field overrides it.

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

Challenge yourself on this topic → Study as cards