- Home
- All questions
- Question 272
CKA study material · question 272 of 1000
A Pod sets hostname foo and subdomain bar in namespace my-namespace. What is its FQDN?
Show the answer
Answer: B. foo.bar.my-namespace.svc.cluster.local
The FQDN is <hostname>.<subdomain>.<namespace>.svc.cluster.local when both fields are set.
Source: DNS for Services and Pods (Kubernetes) — Pod's hostname and subdomain fields