-
hello? I am studying kubernetes scheduler. I would like to know the difference between the informer in the controller and the informer in the scheduler. And what exactly is the role of the controller in the Kubernetes scheduler plugins?
The Kubernetes scheduler feels big to me, making it difficult to analyze. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I assume by "controller", you meant the controllers placed in https://github.com/kubernetes-sigs/scheduler-plugins/tree/master/pkg/controllers. If so, those controllers are merely reflecting the latest status of the CR objects that some scheduler plugin interacts with. The controller should be only updating the In short, you can treat "controllers" (in the context of scheduler plugins) as facilitating components for better user experience. And scheduler plugin can live w/o the controllers. |
Beta Was this translation helpful? Give feedback.
I assume by "controller", you meant the controllers placed in https://github.com/kubernetes-sigs/scheduler-plugins/tree/master/pkg/controllers. If so, those controllers are merely reflecting the latest status of the CR objects that some scheduler plugin interacts with. The controller should be only updating the
.status
portion of the CR objects, and it should be independent with scheduler plugins' logic and scheduling decision.In short, you can treat "controllers" (in the context of scheduler plugins) as facilitating components for better user experience. And scheduler plugin can live w/o the controllers.