<p>Very basic question here: once I have created a priority-class, how do I query which pods are associated with / are in that priority class?</p>

<pre><code>kubectl describe priorityclass &lt;name&gt;
</code></pre>

<p>gives details about the priority class itself</p>

<p>And I can get the details of the individual pod via:</p>

<pre><code>kubectl get pod &lt;name&gt; -o yaml
</code></pre>

<p>But how do I query all pods that are in a particular priority class?</p>

<p>This will do it:</p>
<pre><code>kubectl get pods --all-namespaces -o custom-columns=NAME:.metadata.name,PRIORITY:.spec.priorityClassName,VALUE:.spec.priority
</code></pre>
<p>You can change the namespace for specific one by replacing <code>--all-namespaces</code> with <code>--namespace=&lt;your_namespace&gt;</code>.</p>
<p><strong>TIP: You can see what columns are available with -o yaml, for example:</strong></p>
<pre><code>kubectl get pods --all-namespaces -o yaml | grep -i priority
</code></pre>
