4.6 Namespace-Based Multi-Tenancy Patterns and Their Limits
Alright, let’s talk about using namespaces for multi-tenancy. You’re probably thinking, “I’ll just slap each customer into their own namespace, it’ll be clean, isolated, and perfect.” And I’m here to be that brilliant friend who tells you, “Yes, but also no, and here’s why you’re about to get a nasty surprise at 3 AM.” The core idea is sound. A Kubernetes namespace is a fantastic boundary for organization, not unlike having separate folders for different projects on your laptop. It lets you scope object names, apply access controls with RBAC, and assign resource quotas. For a lot of use cases, this is 90% of what you need. But—and it’s a big but—namespaces are not a security boundary. They’re a organizational boundary that sits inside a single, shared cluster security domain. This distinction is everything.