CRD & Operator Language
5 exercises — Explain CRDs, operator reconciliation loops, custom resource documentation, status subresources, and the operator vs Helm trade-off.
0 / 5 completed
Quick reference: CRD and operator vocabulary
- CRD — CustomResourceDefinition; extends the Kubernetes API with a new resource kind and schema
- Reconciliation loop — operator pattern: watch → compare desired vs. actual → act → repeat
- Status subresource — written by the operator to reflect current health; check conditions and reason fields
1 / 5
A backend engineer unfamiliar with Kubernetes asks what a Custom Resource Definition (CRD) does. Which explanation is most accurate?
A CRD is the schema declaration that tells the Kubernetes API server: "accept and store objects of this new kind." The custom resource instances themselves are the data; the CRD is the type definition.
Without a CRD, kubectl will reject any resource with an unknown kind. Once the CRD is installed, operators can create, update, list, and delete custom resources using the full Kubernetes API and kubectl — including label selectors, namespace scoping, and RBAC. CRDs are the foundation of the operator pattern: they give operators a declarative interface their users can interact with using familiar tooling. Examples: cert-manager installs a Certificate CRD; Prometheus Operator installs a PrometheusRule CRD.
Key vocabulary:
• CRD (CustomResourceDefinition) — extends the Kubernetes API with a new resource kind and its schema
• custom resource (CR) — an instance of a type defined by a CRD; stored and managed by Kubernetes
• OpenAPI v3 schema — the validation schema embedded in a CRD that enforces field types and constraints
Without a CRD, kubectl will reject any resource with an unknown kind. Once the CRD is installed, operators can create, update, list, and delete custom resources using the full Kubernetes API and kubectl — including label selectors, namespace scoping, and RBAC. CRDs are the foundation of the operator pattern: they give operators a declarative interface their users can interact with using familiar tooling. Examples: cert-manager installs a Certificate CRD; Prometheus Operator installs a PrometheusRule CRD.
Key vocabulary:
• CRD (CustomResourceDefinition) — extends the Kubernetes API with a new resource kind and its schema
• custom resource (CR) — an instance of a type defined by a CRD; stored and managed by Kubernetes
• OpenAPI v3 schema — the validation schema embedded in a CRD that enforces field types and constraints