<p>I want to get pod with label</p>
<p>app=vovo
component=db</p>
<p>When i get a pod with label app=vovo and component=db, i can get the result with below command.</p>
<pre><code>kubectl get pod -l app=vovo,component=db
</code></pre>
<p>However, when i want to get the result</p>
<p>app=vovo or component=db</p>
<p>How can i get the result with one kubectl command?</p>

sun
<p><code>OR</code> operations for label selection is not supported as per the <a href="https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors" rel="nofollow noreferrer">documentation</a></p>
<blockquote>
<p>Caution: For both equality-based and set-based conditions there is no
logical OR (||) operator. Ensure your filter statements are structured
accordingly</p>
</blockquote>
<p>Here is a close <strong>hack</strong> you could do:</p>
<pre><code>kubectl get pod -l app=volvo &amp;&amp; kubectl get pod -l component=db --no-headers
</code></pre>
<p>This will run two <code>kubectl</code> queries for two different labels.</p>
