snippetbashTip
kubectl api-resources — Print the supported API resources on the server. More information: <https://kubernetes.io/docs/refer
Viewed 0 times
theresourcescommandsupportedcliprintapikubectl api-resources
Problem
How to use the
kubectl api-resources command: Print the supported API resources on the server. More information: <https://kubernetes.io/docs/reference/kubectl/generated/kubectl_api-resources/>.Solution
kubectl api-resources — Print the supported API resources on the server. More information: <https://kubernetes.io/docs/reference/kubectl/generated/kubectl_api-resources/>.Print the supported API resources:
kubectl api-resourcesPrint the supported API resources with more information:
kubectl api-resources {{[-o|--output]}} widePrint the supported API resources sorted by a column:
kubectl api-resources --sort-by {{name}}Print the supported namespaced resources:
kubectl api-resources --namespacedPrint the supported non-namespaced resources:
kubectl api-resources --namespaced=falsePrint the supported API resources with a specific API group:
kubectl api-resources --api-group {{api_group}}Code Snippets
Print the supported API resources
kubectl api-resourcesPrint the supported API resources with more information
kubectl api-resources {{[-o|--output]}} widePrint the supported API resources sorted by a column
kubectl api-resources --sort-by {{name}}Print the supported namespaced resources
kubectl api-resources --namespacedPrint the supported non-namespaced resources
kubectl api-resources --namespaced=falseContext
tldr-pages: common/kubectl api-resources
Revisions (0)
No revisions yet.