2 min read
Sometimes we might have a manifest file with a lot of objects in it but we don't really need them all. We can use it's labels to install just the objects that have a specific label.
15/09/2022
Read more...2 min read
On most kubectl command we will find the selector option for filtering pods based on it's labels. To use we just need to set the filter using the key=value format:
$ kubectl get pods -l "app=spin"
NAME READY STATUS RESTARTS AGE
spin-clouddriver-9899c9b54-nbjp6 1/1 Running 0 29h
spin-deck-56ff48c587-lc75g 1/1 Running 0 29h
spin-echo-7ccf545b48-b5n9l 1/1 Running 0 29h
spin-front50-59bff89745-2f65h 1/1 Running 0 29h
spin-gate-644c968b68-2q8nj 1/1 Running 0 29h
spin-igor-6669794575-2cnb4 1/1 Running 0 29h
spin-orca-795789b678-nqrk7 1/1 Running 0 29h
spin-rosco-6c9879b69f-gdrfl 1/1 Running 0 29h
10/03/2021
Read more...