How to find short names for Kubernetes resources in kubectl

kubernetes how-to
24 Apr 2022

Did you know that navigating through Kubernetes can be even more efficient? While most users are familiar with the command kubectl get pods, there’s a quicker option at your disposal: kubectl get po. This shorthand can save you precious time when managing clusters, especially when you’re operating with numerous resources.

But wait, that’s just the tip of the iceberg! Kubernetes has a treasure trove of shortcuts that can make your life easier. Instead of hunting through extensive documentation or relying solely on memory, you can discover these handy abbreviations with just a simple command.

Curious? Just type

kubectl api-resources

This command pulls up a list of all available Kubernetes resources along with their corresponding short names.

Voilà! You will see all the available short names as below.

k8s short names