List pods that are servicing a service List pods that are servicing a service kubernetes kubernetes

List pods that are servicing a service


A service chooses the pods using the selector. Look at the selector for the service, and get the pods using that selector. For kubectl, the command looks like:

kubectl get pods --selector <selector>