kubectl utilities Get all pods plain names kubectl get pods -o go-template --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}' Get the node port kubectl get services/someService -o go-template='{{(index .spec.ports 0).nodePort}}')