How do I get a single pod name for kuberenetes?

Clash Royale CLAN TAG #URR8PPP How do I get a single pod name for kuberenetes? I'm looking for a command like "gcloud config get-value project" that retrieves a project's name, but for a pod (it can retrieve any pod name that is running). I know you can get multiple pods with "kubectl get pods", but I would just like one pod name as the result. I'm having to do this all the time: kubectl get pods # add one of the pod names in next line kubectl logs -f some-pod-frontend-3931629792-g589c some-app I'm thinking along the lines of "gcloud config get-value pod". Is there a command to do that correctly? why don't you simply grep the output? – Markus Dresch 24 mins ago 2 Answers 2 You can use the grep comma...