What is a Custom Resource Definition?
WHAT IT TESTS: extending the Kubernetes API. OUTLINE: a CRD registers a new resource kind so the API server stores and serves it like built-ins; it lets you model domain concepts declaratively. RED FLAG: confusing the CRD with the controller that acts on it.
WHAT IT TESTS: whether you understand Kubernetes API extensibility. ANSWER OUTLINE: a CRD declares a new custom resource type, giving it a group, version, kind, and a schema; once registered, the API server persists and serves instances through kubectl and the API exactly like built-in resources. It solves the problem of representing application-specific concepts declaratively without forking Kubernetes. RED FLAG: conflating the CRD (the type) with the operator or controller that reconciles its instances.
Read the original → interview
- #kubernetes
- #crd
- #api-extension
- #custom-resources
- #operators
Get five bites like this every day.
Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.