Managed Kubernetes
Latest
Frequently Asked Questions
Solutions
How Tos
Internal Only
Templates
Powered By

Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
How to Disable the ImageLocality Scheduling Plugin in PMK
Copy Markdown
Open in ChatGPT
Open in Claude
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.
kube-scheduler.yaml
xxxxxxxxxxapiVersion: kubescheduler.config.k8s.io/v1kind: KubeSchedulerConfigurationclientConnection: kubeconfig: /srv/kubernetes/kubeconfigs/kube-scheduler.yamlprofiles: - schedulerName: default-scheduler plugins: score: disabled: - name: ImageLocality- Perform a full-stack restart. (One Master Node at a time)
Command
xxxxxxxxxx$ /opt/pf9/nodelet/nodeletd phases restartOption B: Disable imageLocality plugin using a new Scheduling profile.
- Update
/etc/pf9/kube.d/configs/kube-scheduler.yamlon each master node as below.
kube-scheduler.yaml
xxxxxxxxxxapiVersion: kubescheduler.config.k8s.io/v1kind: KubeSchedulerConfigurationclientConnection: kubeconfig: /srv/kubernetes/kubeconfigs/kube-scheduler.yamlprofiles: - schedulerName: default-scheduler - schedulerName: no-imagelocality-scheduler plugins: score: disabled: - name: ImageLocality- Perform a full-stack restart. (One Master Node at a time)
Command
xxxxxxxxxx/opt/pf9/nodelet/nodeletd phases restart- 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.
VariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches
Last updated on
Was this page helpful?
Next to read:
Calico to Cilium Migration on PMK Workload ClustersDiscard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message