Skip to main content

Runtime Internals

This section covers what kube-runtime does under the hood. We examine the watcher's state machine, the reflector's atomic swap caching, the Controller's trigger-scheduler-runner pipeline, and the code generated by derive macros.

What This Section Covers​

DocumentKey Question
WatcherHow does the state machine work, and how does it recover from errors?
Reflector and StoreHow does the in-memory cache maintain consistency?
Controller PipelineWhat path does data take from trigger to reconciler?
CRDs and Derive MacrosWhat code does #[derive(CustomResource)] actually generate?

If you have already understood kube's static structure from the Architecture section, this section follows what actually happens at runtime.