Junior — Middle
Explain the concept of Namespace in Kubernetes and why it is used.
sobes.tech AI
Answer from AI
A Namespace in Kubernetes is a logical resource isolator within a single cluster. It allows dividing objects (pods, services, configurations) between different teams or projects without creating a separate cluster.
Why use a Namespace:
- Resource isolation and access control (via RBAC).
- Simplification of organization and object search.
- Limiting resource consumption (CPU, memory) at the namespace level.
For example, in one cluster, you can create a "dev" namespace for development and a "prod" namespace for production, to keep environments separate and manage them independently.