Kubernetes Workloads Cheat Sheet/Get pods with owner references

Show which controller owns each pod.

Section: Advanced Pod and Controller Operations

Get pods with owner references

bash
bash
kubectl get pods -n payments -o custom-columns=NAME:.metadata.name,OWNER:.metadata.ownerReferences[0].name
Explanation

Show which controller owns each pod.

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 Advanced Pod and Controller Operations
Wait for pods to become ready
Wait on readiness conditions.
OpenIn sheetbashsame section
Wait for deployment availability
Block until a deployment is available.
OpenIn sheetbashsame section
Patch scale subresource
Update the scale subresource directly.
OpenIn sheetbashsame section
Drain node
Safely evict workloads before maintenance.
OpenIn sheetbashsame section
Uncordon node
Allow new pods to schedule on a node again.
OpenIn sheetbashsame section
Cordon node
Mark a node unschedulable.
OpenIn sheetbashsame section