You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
966 B

  1. apiVersion: v1
  2. kind: ConfigMap
  3. metadata:
  4. name: scheduler-config
  5. namespace: {{ scheduler_plugins_namespace }}
  6. data:
  7. scheduler-config.yaml: |
  8. apiVersion: kubescheduler.config.k8s.io/v1
  9. kind: KubeSchedulerConfiguration
  10. leaderElection:
  11. leaderElect: {{ scheduler_plugins_scheduler_leader_elect | bool | lower }}
  12. profiles:
  13. # Compose all plugins in one profile
  14. - schedulerName: scheduler-plugins-scheduler
  15. plugins:
  16. multiPoint:
  17. enabled:
  18. {% for enabeld_plugin in scheduler_plugins_enabled_plugins %}
  19. - name: {{ enabeld_plugin }}
  20. {% endfor %}
  21. disabled:
  22. {% for disabled_plugin in scheduler_plugins_disabled_plugins %}
  23. - name: {{ disabled_plugin }}
  24. {% endfor %}
  25. {% if scheduler_plugins_plugin_config is defined and scheduler_plugins_plugin_config | length != 0 %}
  26. pluginConfig:
  27. {{ scheduler_plugins_plugin_config | to_nice_yaml(indent=2, width=256) | indent(6, true) }}
  28. {% endif %}