Summaries

Prints Summary of currently working resources and their states

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.

  1. kubectl get deployments nginx
  1. NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
  2. 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

Command / Examples

Check out the reference for commands and examples for get with / without options