I would like to see all resources in a namespace.
Doing kubectl get all
will, despite of the name, not list things like services and ingresses.
If I know the the type I can explicitly ask for that particular type, but it seems there is also no command for listing all possible types. (Especially kubectl get
does for example not list custom types).
Any idea how to show all resources before for example deleting that namespace?
If you are using kubectl krew plug-in, I will suggest using get-all. It can get almost 90% resources. included configmap, secret, endpoints, istio, etc
Answer of rcorre is correct but for N resources it make N requests to cluster (so for a lot of resources this approach is very slow). Moreover, not found resources (that have not instances) are very slow for getting with
kubectl get
.There is a better way to make a request for multiple resources:
instead of
So the answer is:
or