Kubernetes & kubectl Cheat Sheet/List common resources in a namespace

List common workload and service objects.

Section: Namespaces and Basic Resource Listing

List common resources in a namespace

bash
bash
kubectl get all -n payments
Explanation

List common workload and service objects.

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
Create namespace
Create a namespace imperatively.
OpenIn sheetbashsame section
Delete namespace
Delete a namespace and the resources in it.
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