- Home
- All questions
- Question 271
CKA study material · question 271 of 1000
What is a Pod's hostname by default?
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