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

CKA study material · question 125 of 1000

Why must every namespace name be a valid RFC 1123 DNS label?

  1. Because RBAC matches namespaces as hostnames
  2. Because namespace names appear in Service DNS names
  3. Because etcd keys are DNS encoded
  4. Because the kubelet resolves namespaces over DNS
Show the answer

Answer: B. Because namespace names appear in Service DNS names

A Service resolves as <service>.<namespace>.svc.cluster.local, so the namespace name has to be a DNS label.

Source: Namespaces (Kubernetes) — Namespaces and DNS

Challenge yourself on this topic → Study as cards