Search⌘ K

Creating and Managing Namespaces

Explore how to create Kubernetes namespaces both imperatively and declaratively. Learn to manage these namespaces effectively and configure kubectl to target specific namespaces to streamline your cluster operations.

Namespaces as a resource

Namespaces are first-class resources in the core v1 API group. This means they’re stable, well-understood, and have been around for a long time. It also means we can work with them imperatively and declaratively. We’ll do both.

Use the following ...