CRD
A CustomResourceDefinition: an object that teaches the API server a new kind, with its own name, group, scope and schema.
In more detail
Once a CRD is installed, you can create objects of the new kind with kubectl like any built-in one, and the API server validates them against the CRD's OpenAPI schema. A CRD only stores data; a controller is needed to act on it. Argo CD and Flux install CRDs of their own.
Example
kubectl get website sample -o yamlRelated terms
- custom resource — An object of a kind that a CRD added to the cluster, such as a Website object from a platform team's own CRD, used to record intent for a controller.
- operator pattern — Packaging operational knowledge as a custom resource plus a controller that reconciles it, so software manages itself on Kubernetes.
- API group — A named family of related Kubernetes object types, such as apps for Deployments or batch for Jobs, that is versioned on its own.
Taught in
- Sync Phases, Waves And Hooks — Certified Argo Project Associate (CAPA) Exam Prep
- Health, Reconciliation And Fields Argo CD Should Ignore — Certified Argo Project Associate (CAPA) Exam Prep
- Three Teams, Three Formats: Manifests And Packaging — Certified GitOps Associate (CGOA) Exam Prep
- CNI, CSI, CRI And CRDs: The Plug-In Points — Certified Kubernetes Administrator (CKA) Exam Prep
- Gateway API: A Route Asks, A Gateway Allows — Certified Kubernetes Administrator (CKA) Exam Prep
- API Deprecations And Migrations — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Custom Resources And Operators — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Configuration And Security: Timed Drill And Checkpoint — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Mock Exam: Sixteen Tasks Against The Clock — Certified Kubernetes Application Developer (CKAD) Exam Prep
- A Tiny CRD, Controller And The Operator Pattern — Kubernetes: Production-Grade Container Orchestration