Skip to content

Instantly share code, notes, and snippets.

@albertoeks
Last active August 17, 2023 05:43
Show Gist options
  • Save albertoeks/27956bebd7801f67f0d4d46db4d82033 to your computer and use it in GitHub Desktop.
Save albertoeks/27956bebd7801f67f0d4d46db4d82033 to your computer and use it in GitHub Desktop.
kubectl commands
//List pods in a node
kubectl get pods --all-namespaces --field-selector spec.nodeName=<NODE> -o wide
//Delete evicted pods
kubectl delete pods --all-namespaces --field-selector=status.phase=Failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment