<p>I have a deployment, that looks as follows: 
<a href="https://i.stack.imgur.com/j5TPW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/j5TPW.png" alt="enter image description here"></a></p>

<p>The question is, what is the difference between the red border label and the violet one? </p>

<p>blue border labels are applied to pod spec where as red border labels are part of deployment spec. </p>

<p>Notice that replicaSet selector uses same key:value pair to identify the related pods.</p>

<pre><code>You can query deployment object using below command

kubectl get deploy -l app=nginx

same way, you can query pod using

kubectl get po -l app=nginx
</code></pre>
