Skip to content

Instantly share code, notes, and snippets.

@vishnuhd
Last active March 15, 2021 07:49
Show Gist options
  • Save vishnuhd/c20d233240e582f7bc507a820cdab025 to your computer and use it in GitHub Desktop.
Save vishnuhd/c20d233240e582f7bc507a820cdab025 to your computer and use it in GitHub Desktop.
Display pods and nodes they are deployed on side by side
kubectl get pod -o=custom-columns=NODE:.spec.nodeName,NAME:.metadata.name --sort-by="{.spec.nodeName}" --all-namespaces
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment