Kubernetes selectors
Jump to navigation
Jump to search
kubectl get pods --selector=app=YOUR_APP
kubectl get pods --selector=app=YOUR_APP -o=jsonpath='{.items[0].metadata.name}'
selector: ports:
Related
kubectl set selector
- Kubernetes services
- CKA v1.21: Understand how to use Labels, Selector and Annotations
See also
Advertising: