- Get a Summary of Resources Running in the Cluster
Quickly summarizing a collection of Resources and their state.
Summarizing Resource State using a columnar format is the most common way to view cluster state when developing applications or triaging issues. The columnar view gives a compact summary of the most relevant information for a collection of Resources.
kubectl get reads Resources from the cluster and formats them as output. The examples in
this chapter will query for Resources by providing Get the Resource Type as an argument.
For more query options see Queries and Options.
If no output format is specified, Get will print a default set of columns.
Note: Some columns may not directly map to fields on the Resource, but instead may be a summary of fields.
kubectl get deployments nginx
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE nginx 1 1 1 0 5s
You can also use a number of options to query out and format the way the resources are displayed.
Some of the commonly used
- custom columns
- show labels
- show kind
Command / ExamplesCheck out the reference for commands and examples for
getwith / without options
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.