Skip to content

Namespace

Medium — good to knowCI/CD & DevOps

ELI5 — The Vibe Check

In Kubernetes, a Namespace is like a virtual folder that organizes resources. You can have a production namespace and a staging namespace on the same cluster, and they're completely separated from each other. Resources in different namespaces can have the same names without clashing — like two files named index.html in different folders.

Real Talk

A Kubernetes Namespace is a mechanism for isolating groups of resources within a single cluster. Namespaces provide scope for names, enable resource quotas, and support access control policies. Common namespaces include default, kube-system, and custom ones like production or staging.

Show Me The Code

# Create a namespace
kubectl create namespace production

# Deploy into a specific namespace
kubectl apply -f deployment.yaml -n production

# List pods in a namespace
kubectl get pods -n production

When You'll Hear This

"Deploy that to the staging namespace first." / "Each team gets their own namespace with resource limits."

Made with passive-aggressive love by manoga.digital. Powered by Claude.