Created
October 1, 2019 08:16
-
-
Save BitProcessor/395a436a60d27a75562f7da5e0e849e9 to your computer and use it in GitHub Desktop.
K8S: Get pod names
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 --no-headers -o custom-columns=":metadata.name" | |
#kubectl get pods --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}' | |
#kubectl get pods -o=name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment