mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-18 17:01:17 +00:00
Update cheatsheets
This commit is contained in:
33
tldr/kubectl-api-resources
Normal file
33
tldr/kubectl-api-resources
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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}}`
|
||||
Reference in New Issue
Block a user