CloudNatix CLI
cnatix k8s resources search
Search Kubernetes resources
Synopsis
Returns a list of Kubernetes resources based on the search query. Currently, the supported fields that can be searched are (comma separated):
cluster_uuids - the UUID of the clusters
namespaces - the namespace of the Kubernetes resources (if applicable)
controlled-by-kinds - the Kubernetes resources that are controlled by these kinds
controlled-by-uids - the UIDs of the Kubernetes resources
start-time - the starting timestamp in YYYY/MM/DD hh:mm:ss.
end-time - the ending timestamp in YYYY/MM/DD hh:mm:ss.
The filters are ANDed with each other and can be combined in any combination.
Example:
k8s resources search pod --cluster-uuids=cuid1 --controlled-by-kinds=replicaset --start-time='2022/01/01 00:00:00' --end-time='2022/01/14 00:00:00'
Searches for all the Kubernetes Pod resources from the cluster with UUID 'cuid' controlled by ReplicaSets in the time range from January 1st 2022 to January 14th 2022.
cnatix k8s resources search [flags]
Options
--cluster-uuids strings Comma separated slice of cluster-uuids
--controlled-by-kinds strings Comma separated slice of controlled-by-kinds
--controlled-by-uids strings Comma separated slice of controlled-by-uids
--end-time string End time as YYYY/MM/DD hh:mm:ss
--event-type string Events for the specified type is searched. Can be empty, "normal" or "warning". Only meaningful when events are searched.
-h, --help help for search
--namespaces strings Comma separated slice of namespaces
-n, --next string Next page token
--reason-type string Events for the specified reason is searched. Only meaningful when events are searched.
-s, --size int32 Number of resources to show (default 25)
--start-time string Start time as YYYY/MM/DD hh:mm:ss
--workload-uid string Events for the specified workload is searched. Only meaningful when events are searched.
Options inherited from parent commands
--global-controller-domain string Domain name of the CloudNatix Global Controller
--workspace string workspace directory (default is $HOME/.cnatix)
SEE ALSO
- cnatix k8s resources - Commands for monitoring Kubernetes resources