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?
kubectl describe priorityclass <name>
gives details about the priority class itself
And I can get the details of the individual pod via:
kubectl get pod <name> -o yaml
But how do I query all pods that are in a particular priority class?
This will do it:
Change
highpriority
with whatever label you are using for your priority.Hope it helps.