Interview Prep/Kubernetes/Architecture & Control Plane

How do watches work and why are they important?

IntermediateConceptArchitecture & Control Plane
Answer

Clients open a long-lived HTTP stream (?watch=true) with a resourceVersion and receive ADDED/MODIFIED/DELETED events. Informers in client-go cache objects locally and use watches to stay current, so controllers do not poll the API server. If the watch falls too far behind (410 Gone), the client relists.

All Kubernetes questions Roadmap: Kubernetes core

More on Architecture & Control Plane