kubectl show only pod name code example
Example: kubectl get only pod name
kubectl get pods --template '{{range .items}}{{.metadata.name}}{{end}}' --selector=app=
//replace with your service container name
kubectl get pods --template '{{range .items}}{{.metadata.name}}{{end}}' --selector=app=
//replace with your service container name