api-resources

Print the supported API resources

  1. kubectl api-resources

Print the supported API resources with more information

  1. kubectl api-resources -o wide

Print the supported API resources sorted by a column

  1. kubectl api-resources --sort-by=name

Print the supported namespaced resources

  1. kubectl api-resources --namespaced=true

Print the supported non-namespaced resources

  1. kubectl api-resources --namespaced=false

Print the supported API resources with a specific APIGroup

  1. kubectl api-resources --api-group=extensions

Print the supported API resources on the server.

Usage

$ kubectl api-resources

Flags

NameShorthandDefaultUsage
api-groupLimit to resources in the specified API group.
cachedfalseUse the cached list of resources if available.
namespacedtrueIf false, non-namespaced resources will be returned, otherwise returning namespaced resources by default.
no-headersfalseWhen using the default or custom-column output format, don’t print headers (default print headers).
outputoOutput format. One of: wide|name.
sort-byIf non-empty, sort list of resources using specified field. The field can be either ‘name’ or ‘kind’.
verbs[]Limit to resources that support the specified verbs.