Interview Prep/Kubernetes/Extending Kubernetes: Helm, CRDs, Operators & kubectl

What is a CustomResourceDefinition (CRD)?

BeginnerConceptExtending Kubernetes: Helm, CRDs, Operators & kubectl
Answer

A CRD registers a new resource type (for example Certificate, Prometheus) with the API server, which then stores and serves it like built-in types, with schema validation (OpenAPI v3), versions and subresources. A CRD alone does nothing; a controller acts on the custom resources.

kubectl get crd
kubectl explain certificate.spec
All Kubernetes questions

More on Extending Kubernetes: Helm, CRDs, Operators & kubectl