Created
November 5, 2015 05:25
-
-
Save elsonrodriguez/1003536730b6d622039e to your computer and use it in GitHub Desktop.
Kubectl bash magicks.
This file contains 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
#get all nodes running pod with specified label | |
kubectl get pods -l “key=value" -o template --template='{{range .items }}{{.spec.nodeName}}{{"\n" | printf "%v"}}{{end}}’ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment