How to Disable the ImageLocality Scheduling Plugin in PMK
Problem
How to disable the imageLocality Scheduling plugin in PMK.
Environment
Platform9 Managed Kubernetes - All Versions
Platform9 Self Managed Cloud Platform - All Versions
Component: Kube-Scheduler
Procedure
The steps below won't persist cluster upgrades. It needs to be reapplied after every cluster upgrade.
Option A: Disable imageLocality plugin for default scheduling behaviour.
Update
/etc/pf9/kube.d/configs/kube-scheduler.yamlon each master node as below.
Perform a full-stack restart. (One Master Node at a time)
Option B: Disable imageLocality plugin using a new Scheduling profile.
Update
/etc/pf9/kube.d/configs/kube-scheduler.yamlon each master node as below.
Perform a full-stack restart. (One Master Node at a time)
Now, Pods that want to be scheduled according to a specific profile (in this case
no-imagelocality-scheduler) can include the corresponding scheduler name in their.spec.schedulerName
Additional Information
For more information on kube-scheduler configuration, refer this document.
