103 β€” Working with Namespaces

Beginner

Master Kubernetes namespaces to organize resources, isolate environments, and manage resource quotas across teams and applications.

Learning Objectives

1
Understand what namespaces are and why they matter
2
Create and manage namespaces
3
Deploy resources to specific namespaces
4
Switch between namespaces efficiently
Step 1

View existing namespaces

Explore the default namespaces in your Kubernetes cluster.

Commands to Run

kubectl get namespaces
kubectl get ns

What This Does

Namespaces provide scope for resource names and allow you to divide cluster resources. Every cluster starts with default namespaces.

Expected Outcome

You'll see default namespaces: default, kube-system, kube-public, and kube-node-lease.

Pro Tips

  • 1
    'ns' is a shorthand for 'namespaces'
  • 2
    default: where resources go if no namespace specified
  • 3
    kube-system: Kubernetes system components
  • 4
    kube-public: publicly readable, mostly unused
  • 5
    kube-node-lease: node heartbeat data (v1.13+)
Was this step helpful?

All Steps (0 / 10 completed)