mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-09 11:47:47 +03:00
Add scheduler plugins support (#10747)
Signed-off-by: tu1h <lihai.tu@daocloud.io>
This commit is contained in:
29
roles/kubernetes-apps/scheduler_plugins/defaults/main.yml
Normal file
29
roles/kubernetes-apps/scheduler_plugins/defaults/main.yml
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
scheduler_plugins_enabled: false
|
||||
|
||||
scheduler_plugins_namespace: scheduler-plugins
|
||||
|
||||
scheduler_plugins_controller_replicas: 1
|
||||
|
||||
scheduler_plugins_scheduler_replicas: 1
|
||||
|
||||
# The default is determined by the number of control plane nodes.
|
||||
scheduler_plugins_scheduler_leader_elect: "{{ ((groups['kube_control_plane'] | length) > 1) }}"
|
||||
|
||||
# Plugins to enable. See https://github.com/kubernetes-sigs/scheduler-plugins/blob/master/manifests/install/charts/as-a-second-scheduler/README.md#configuration for more info.
|
||||
scheduler_plugins_enabled_plugins:
|
||||
- Coscheduling
|
||||
- CapacityScheduling
|
||||
- NodeResourceTopologyMatch
|
||||
- NodeResourcesAllocatable
|
||||
|
||||
# Plugins to disable. See https://github.com/kubernetes-sigs/scheduler-plugins/blob/master/manifests/install/charts/as-a-second-scheduler/README.md#configuration for more info.
|
||||
scheduler_plugins_disabled_plugins:
|
||||
- PrioritySort
|
||||
|
||||
# Customize the enabled plugins' config.
|
||||
# Refer to the "pluginConfig" section of https://github.com/kubernetes-sigs/scheduler-plugins/blob/master/manifests/<plugin>/scheduler-config.yaml.
|
||||
scheduler_plugins_plugin_config:
|
||||
- name: Coscheduling
|
||||
args:
|
||||
permitWaitingTimeSeconds: 10 # default is 60
|
||||
Reference in New Issue
Block a user