Difference between revisions of "Kubernetes selectors"
Jump to navigation
Jump to search
Line 13: | Line 13: | ||
== See also == | == See also == | ||
+ | * {{Kubernetes selectors}} | ||
* {{Kubernetes labels}} | * {{Kubernetes labels}} | ||
[[Category:K8s]] | [[Category:K8s]] |
Revision as of 06:06, 4 November 2022
kubectl get pods --selector=app=YOUR_APP
kubectl get pods --selector=app=YOUR_APP -o=jsonpath='{.items[0].metadata.name}'
selector: ports:
Related
See also
Advertising: