e.g. namespace; kube-system
# kubectl get pods --all-namespaces --show-labels
# kubectl get pods -n kube-system --show-labels
-> List pods via labels
# kubectl get pods -n kube-system -l tier=control-plane
-> Describe pod/pods via labels
# kubectl describe pod -n kube-system -l component=kube-scheduler
# kubectl describe pod -n kube-system -l tier=control-plane
-> Get logs via labels
# kubectl get pods -n kube-system -l tier=control-plane
-> Describe pod/pods via labels
# kubectl describe pod -n kube-system -l component=kube-scheduler
# kubectl describe pod -n kube-system -l tier=control-plane
-> Get logs via labels
# kubectl logs -n kube-system -l component=kube-scheduler
# kubectl logs -n kube-system -l tier=control-plane
-> Delete pods via labels
# kubectl delete pods -n kube-system -l component=example
# kubectl delete pods -n kube-system -l 'component in (example,example2)'
# kubectl delete pods -n kube-system -l 'component notin (example3, example4)'