Last active
August 17, 2023 05:43
-
-
Save albertoeks/27956bebd7801f67f0d4d46db4d82033 to your computer and use it in GitHub Desktop.
kubectl commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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