Add scheduler plugins support (#10747)

Signed-off-by: tu1h <lihai.tu@daocloud.io>
This commit is contained in:
Louis Tu
2024-01-23 14:42:33 +08:00
committed by GitHub
parent 89d42a7716
commit a88bad7947
17 changed files with 1109 additions and 0 deletions

View 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