Kubernetes version: 1.15+
How kubernetes-scheduler plugins/policies are actually configured? I see 2 options: algorithmSource.policy.configMap and plugins:
algorithmSource: policy: configMap: namespace: kube-system name: scheduler.cfg plugins: score: enabled: - name: NodeResourcesMostAllocated weight: 2 disabled: - name: NodeResourcesLeastAllocated
If I understand it right
policy is legacy, and all policies are rewritten as score plugins. I tried both options, but the problem is that there is no information in the scheduler log which policies/plugins are actually used and what weights and params they have(even if a log level is -v 10). Another problem is that the scheduler doesn’t throw an error if the plugins object is not properly configured. There is no documentation regarding plugins configuration. I had to look into the code to find the names of the plugins.