Skip to content

Instantly share code, notes, and snippets.

@lbbedendo
Created January 24, 2022 12:48
Show Gist options
  • Save lbbedendo/54c1d3f4a024974bb0347aad70757f14 to your computer and use it in GitHub Desktop.
Save lbbedendo/54c1d3f4a024974bb0347aad70757f14 to your computer and use it in GitHub Desktop.
list all pods of node
# list all nodes
kubectl get nodes
# list all pods of specified node
kubectl get pods --all-namespaces -o wide --field-selector spec.nodeName=<node-name>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment