Why Kubernetes Watches Instead of Polling
Why the Kubernetes post says it was built around a watch model rather than polling, and what it says the controller-runtime cache really is.
For: Learners new to Kubernetes controllers.
Watch instead of polling
To prevent that, Kubernetes was built around a watch model rather than polling from the very beginning.[1]
No loop asks what is in the world now
This is the list + watch pattern, and there is no "what is in the world right now?" loop anywhere in it.[1]
What the cache really is
So when people talk about "the controller-runtime cache", they are not talking about a clever optimization.[1]
Sources
- How the controller-runtime Cache Actually Works (kubernetes.io · checked )
More articles
- LearningWhat a Request and a Limit Mean on a Shared GPUWhy NVIDIA's post says GPUs are shared, what a request and a limit declare for a workload and what isolation each workload gets.
- LearningWhy Too Many Ways to Write the Same Thing Cause TroubleWhy the Kubernetes post says YAML's many choices are not equally good for writing manifests, what goes wrong with them and where it says KYAML sits.
- LearningNVKE and NVKR: What the Two NVIDIA Projects DoWhat NVIDIA's announcement says NVKE and NVKR do, that they can be used together or apart, and their license and release status.