I'm trying to customize the behavior of the kube-scheduler on an AKS cluster (kubernetes v1.19.3), as described in Scheduler Configuration.
My goal is to use the NodeResourcesMostAllocated plugin in order to schedule the pods using the least number of nodes possible.
Consider the following file - most-allocated-scheduler.yaml
apiVersion: kubescheduler.config.k8s.io/v1beta1
kind: KubeSchedulerConfiguration
profiles:
- schedulerName: default-scheduler
- schedulerName: most-allocated-scheduler
plugins:
score:
disabled:
- name: NodeResourcesLeastAllocated
enabled:
- name: NodeResourcesMostAllocated
weight: 2
According to the documentation, I can specify scheduling profiles by running something like:
kube-scheduler --config most-allocated-scheduler.yaml
But where exactly can I find the kube-scheduler in order to run the above command? I'd like to do this ideally on a pipeline. Is it possible to do such thing when using AKS?