1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-30 16:54:11 +02:00
tldr/pages/common/kubectl-api-resources.md
Anand 9d4e368921
kubectl-{api-resources, autoscale}: add pages (#17758)
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com>
2025-08-23 13:48:07 +03:00

28 lines
748 B
Markdown

# kubectl api-resources
> Print the supported API resources on the server.
> More information: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#api-resources>.
- Print the supported API resources:
`kubectl api-resources`
- Print the supported API resources with more information:
`kubectl api-resources {{[-o|--output]}} 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`
- Print the supported non-namespaced resources:
`kubectl api-resources --namespaced=false`
- Print the supported API resources with a specific API group:
`kubectl api-resources --api-group={{api_group}}`