Skip to content

Instantly share code, notes, and snippets.

@BitProcessor
Created October 1, 2019 08:16
Show Gist options
  • Save BitProcessor/395a436a60d27a75562f7da5e0e849e9 to your computer and use it in GitHub Desktop.
Save BitProcessor/395a436a60d27a75562f7da5e0e849e9 to your computer and use it in GitHub Desktop.
K8S: Get pod names
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