[Verse 1]
When you need to know what's running in your cluster space
All the resource types that Kubernetes can embrace
There's a command that shows you everything you need
kubectl api-resources is the key indeed
[Chorus]
Get all resource types, see what you can find
Pods and services, deployments in a line
Namespaces, secrets, configs by design
kubectl api-resources shows them every time
[Verse 2]
Short names and long names, all displayed for you
API versions tell you what each resource can do
Namespaced or cluster-wide, the scope is crystal clear
Every object type that lives within your sphere
[Chorus]
Get all resource types, see what you can find
Pods and services, deployments in a line
Namespaces, secrets, configs by design
kubectl api-resources shows them every time
[Bridge]
Filter by API group or search for what you need
Verify permissions, make your queries succeed
From basic pods to custom resources too
The complete inventory is waiting there for you
[Verse 3]
ConfigMaps and volumes, ingress rules galore
Persistent volume claims and so much more
When you're troubleshooting or just want to explore
This command opens up the Kubernetes door
[Chorus]
Get all resource types, see what you can find
Pods and services, deployments in a line
Namespaces, secrets, configs by design
kubectl api-resources shows them every time
[Outro]
Now you know the way to see what's possible
Every resource type accessible
kubectl api-resources, your discovery tool
Master this command and you'll always stay cool