Skip to content

The reconciliation loop

Every controller in Kubernetes is the same pattern: observe, diff, act, repeat.

graph LR
  D[Desired state in YAML] --> A[kube-apiserver]
  A --> E[etcd]
  E --> C[Controller]
  C --> O[Observed state]
  O --> D2{Diff?}
  D2 -->|Yes| Act[Act: create/delete/update]
  Act --> E
  D2 -->|No| Wait[Wait for next event]
  style D fill:#E8F5E9
  style Act fill:#FFF3E0