<p>How the OR expression can be used with selectors and labels?</p>

<pre><code>  selector:
    app: myapp
    tier: frontend
</code></pre>

<p>The above matches pods where labels <code>app==myapp</code> <strong>AND</strong> <code>tier=frontend</code>. </p>

<p>But the OR expression can be used?</p>

<p><code>app==myapp</code> <strong>OR</strong> <code>tier=frontend</code>?</p>

Tevin J
<p>Now you can do that :</p>

<pre><code>kubectl get pods -l 'environment in (production, qa)'
</code></pre>

<p><a href="https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#list-and-watch-filtering" rel="noreferrer">https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#list-and-watch-filtering</a></p>
