Section: Namespaces and Basic Resource Listing

Create namespace

bash
bash
kubectl create namespace staging
Explanation

Create a namespace imperatively.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Namespaces and Basic Resource Listing
List namespaces
Show all namespaces.
OpenIn sheetbashsame section
Delete namespace
Delete a namespace and the resources in it.
OpenIn sheetbashsame section
List common resources in a namespace
List common workload and service objects.
OpenIn sheetbashsame section
List pods with extra columns
Show node, IP, and extra details.
OpenIn sheetbashsame section
Get one pod
Inspect a single pod quickly.
OpenIn sheetbashsame section
Describe pod
View events, status, probes, mounts, and conditions.
OpenIn sheetbashsame section