<p>I am trying to get the list of pods that are servicing a particular service</p>
<p>There are 3 pods associated with my service.</p>
<p>I tried to execute the below command</p>
<p><code>oc describe svc my-svc-1</code></p>
<p>I am expecting to see the pods associated with this service. but that does not show up. What command gets me just the list of pods associated with the service.</p>

<p>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:</p>

<pre><code>kubectl get pods --selector &lt;selector&gt;
</code></pre>
