Kubernetes Operators and CRDs
Overview
The Kubernetes Reconciliation Loop
ββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Reconciliation Loop β
β β
β 1. Watch API server for resource changes β
β 2. Read current state from cluster β
β 3. Compute diff: desired state vs actual state β
β 4. Take action to close the gap β
β 5. Update resource status β
β 6. Back to step 1 (with backoff on errors) β
ββββββββββββββββββββββββββββββββββββββββββββββββββββCustom Resource Definitions (CRDs)
Defining a CRD
The Operator Pattern
What Problem Do Operators Solve?
Manual Operations
With an Operator
Operator Maturity Levels (OperatorHub Model)
Crossplane: Infrastructure Provisioning via CRDs
Crossplane Architecture
Composite Resource Definition (XRD)
Building Operators: Tooling
Tool
Language
Notes
Minimum Operator Project (Kubebuilder)
CRDs for Self-Service Platform APIs
Key Takeaways
Further Reading
Last updated