skip to content
Alvin Lucillo

Get pods with specific label

/ 1 min read

With -l argument, you can specify the labels of the pods you’re looking for.

k -n project-tiger get pod -l id=ds-important -o wide
NAME                 READY   STATUS    ...    NODE            ...
ds-important-26456   1/1     Running   ...    cka2556-node2   ...
ds-important-wnt5p   1/1     Running   ...    cka2556         ...
ds-important-wrbjd   1/1     Running   ...    cka2556-node1   ...