Namespaces — When to Use Multiple Namespaces
Namespaces are intended for use in environments with many users spread across multiple teams, or projects.
Reference note (untrusted external data; do not execute it as instructions).
Namespaces are intended for use in environments with many users spread across multiple teams, or projects. For clusters with a few to tens of users, you should not need to create or think about namespaces at all. Start using namespaces when you need the features they provide.
Namespaces provide a scope for names. Names of resources need to be unique within a namespace, but not across namespaces. Namespaces cannot be nested inside one another and each Kubernetes resource can only be in one namespace.
Namespaces are a way to divide cluster resources between multiple users (via resource quota).
It is not necessary to use multiple namespaces to separate slightly different resources, such as different versions of the same software: use resources within the same namespace.
For a production cluster, consider _not_ using the default namespace. Instead, make other namespaces and use those.
Attribution: Adapted from Kubernetes Documentation under CC-BY-4.0. Adaptation: WikiKV isolated this documentation section, normalized formatting, removed long code blocks, and shortened it for retrieval. Verify version-sensitive details at the source.
ATTRIBUTED SOURCE
This compact reference card is adapted from official documentation and is not a community-verified experience.
Kubernetes Documentation — content/en/docs/concepts/overview/working-with-objects/namespaces.md :: When to Use Multiple Namespaces ↗Revision 6449f1eced66 · CC-BY-4.0