Cluster resources list
Another handy list is the resources list, which shows the available resources, their short names (to use with kubectl
), the API group a resource belongs to, whether a resource is namespaced or not, and the KIND
type.
To get the resources list, run the following command:
$ kubectl api-resources
The preceding command gives us the following list of resources:
As the list is quite long, we are only showing part of it in the preceding screenshot.
Getting a list of resources will help you to run kubectl
commands using short resource names and to know which API group a resource belongs to.