How to list applied Custom Resource Definitions in kubernetes with kubectl How to list applied Custom Resource Definitions in kubernetes with kubectl kubernetes kubernetes

How to list applied Custom Resource Definitions in kubernetes with kubectl


kubectl get customresourcedefinitions, or kubectl get crd.

You can then use kubectl describe crd <crd_name> to get a description of the CRD. And of course kubectl get crd <crd_name> -o yaml to get the complete definition of the CRD.

To remove you can use kubectl delete crd <crd_name>.


Custom Resources are like any other native kubernetes resources. All the basic kubecl CRUD operations works fine for CRDs. so just use any the below commands.

kubectl get crd <name of crd>kubectl describe crd <name of crd>kubectl get crd <name of crd> -o yaml