Namespaces Interview Questions
Why Namespaces Matter in Interviews
Namespaces are the organizational backbone of any production Kubernetes cluster. Interviewers use namespace questions to gauge whether candidates can design multi-tenant environments and prevent resource contention between teams.
Basic questions ask about namespace purposes and the default namespaces. Intermediate questions test ResourceQuota and LimitRange knowledge: "How do you prevent one team from consuming all cluster resources?" or "What happens when a Pod is created without resource requests in a namespace with a LimitRange?" These scenarios directly mirror real-world operational challenges.
Cross-namespace communication is another frequent topic. Candidates should explain how Services are discoverable via DNS across namespaces and how Network Policies can be layered on top to restrict unwanted traffic. This intersection of namespaces, networking, and RBAC reveals whether someone can think holistically about cluster design.
For senior roles, interviewers may discuss namespace-per-environment versus namespace-per-team strategies, the trade-offs of soft multi-tenancy versus hard multi-tenancy (separate clusters), and how tools like Hierarchical Namespace Controller extend the base model for complex organizations.