Created
May 5, 2025 15:00
-
-
Save dex4er/83afcbf28de559b35e5499fca2c8cea2 to your computer and use it in GitHub Desktop.
kubectl snippets
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
kubectl get pods --all-namespaces -o jsonpath="{range .items[?(@.spec.runtimeClassName)]}-n {.metadata.namespace} {.metadata.name}{'\n'}{end}" | xargs -n3 echo kubectl delete pod --wait=false | bash |
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
kubectl get nodes --output=jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.status.nodeInfo.kubeletVersion}{"\t"}{.status.nodeInfo.osImage}{"\t"}{.metadata.labels.nodegroup}{"\n"}{end}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment