Tutorial: How To Write a Reconciler Using K8s Controller-Runtime!
Talkat KubeCon + CloudNativeCon North America 2022 · on Wednesday, 2022-10-26· at 16:30· 330 AB, Huntington Place: 1 Washington Blvd·
summary
Hands-on 90‑minute tutorial builds two CRDs and reconcilers that manage a mock CFP API (speakers and proposals) using controller-runtime and kubebuilder, runs them in kind/Gitpod, and shows create/update/delete flows with ID propagation, index-by‑speaker lookups, requeue/backoff, and finalizers. Tests use envtest and a Makefile to generate manifests and run unit/integration checks; demos show the controller creating remote resources, updating status conditions and observedGeneration, and cleaning up successfully.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 12:10Tutorial overview
- 27:00Key concepts
- 30:31Step 1 setup
- 41:29Reconciler implementation
- 58:00Conditions and error handling
- 1:07:16Step 2 update
- 1:14:45Deletion handling
- 1:25:50Summary
related talks
31mIt's all about reconciliation - anatomy of a kubernetes controller
36mPolymorphic Reconcilers in Kubernetes - Advanced DuckTyping
01h 19mTutorial: Building an Enterprise Infrastructure Control Plane on Kubernetes
27mDemystifying Why the World Is Built on Kubernetes: Learning To Leverage Bespoke CRDs and Controllers
26mWriting Kubernetes Controllers for CRDs: Challenges, Approaches and Solutions
35mBeyond Reconcile Loop - Patterns for Kubernetes Operator Development
19mKeynote: CRDs, No Longer 2nd Class Thing!
05mEffectively Extending Kubernetes Resources
