api-resources
Print the supported API resources
kubectl api-resources
Print the supported API resources with more information
kubectl api-resources -o wide
Print the supported API resources sorted by a column
kubectl api-resources --sort-by=name
Print the supported namespaced resources
kubectl api-resources --namespaced=true
Print the supported non-namespaced resources
kubectl api-resources --namespaced=false
Print the supported API resources with a specific APIGroup
kubectl api-resources --api-group=extensions
Print the supported API resources on the server.
Usage
$ kubectl api-resources
Flags
Name | Shorthand | Default | Usage |
---|---|---|---|
api-group | Limit to resources in the specified API group. | ||
cached | false | Use the cached list of resources if available. | |
namespaced | true | If false, non-namespaced resources will be returned, otherwise returning namespaced resources by default. | |
no-headers | false | When using the default or custom-column output format, don’t print headers (default print headers). | |
output | o | Output format. One of: wide|name. | |
sort-by | If 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. |
当前内容版权归 Kubernetes 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 Kubernetes .