Summaries
TL;DR
- Get a Summary of Resources Running in the Cluster
Summarizing Resources
Motivation
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.
Get
The 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.
Default
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 options
include:
- wide
- custom columns
- labels
- show labels
- show kind
Feedback
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.