Kubectl get field-selector Support
Jump to navigation
Jump to search
External
Internal
Overview
kubectl get ... --field-selector <expression>
--field-selector
specifies a selector (field query) to filter the result on. It supports the expressions containing '=', '==', and '!=', which can be applied to multiple fields.
--field-selector key1=value1,key2=value2,key3!=value3
The server only supports a limited number of field queries per type.
Usage Examples
kubectl get pods --all-namespaces -o wide --field-selector spec.nodeName=<node>