771a5e26bb
* Add KubeSchedulerConfiguration for k8s 1.19 and up With release of version 1.19.0 of kubernetes KubeSchedulerConfiguration was graduated to beta. It allows to extend different stages of scheduling with profiles. Such effect is achieved by using plugins and extensions. This patch adds KubeSchedulerConfiguration for versions 1.19 and later. Configuration is set to k8s defaults or to kubespray vars. Moving those defaults to new vars will be done in following patch. Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com> * KubeSchedulerConfiguration: add defaults Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
24 lines
925 B
Django/Jinja
24 lines
925 B
Django/Jinja
apiVersion: kubescheduler.config.k8s.io/v1beta1
|
|
kind: KubeSchedulerConfiguration
|
|
clientConnection:
|
|
kubeconfig: "{{ kube_config_dir }}/scheduler.conf"
|
|
{% for key in kube_scheduler_client_conn_extra_opts %}
|
|
{{ key }}: {{ kube_scheduler_client_conn_extra_opts[key] }}
|
|
{% endfor %}
|
|
{% if kube_scheduler_extenders %}
|
|
extenders:
|
|
{{ kube_scheduler_extenders | to_nice_yaml(indent=2, width=256) }}
|
|
{% endif %}
|
|
leaderElection:
|
|
leaseDuration: {{ kube_scheduler_leader_elect_lease_duration }}
|
|
renewDeadline: {{ kube_scheduler_leader_elect_renew_deadline }}
|
|
{% for key in kube_scheduler_leader_elect_extra_opts %}
|
|
{{ key }}: {{ kube_scheduler_leader_elect_extra_opts[key] }}
|
|
{% endfor %}
|
|
{% if kube_scheduler_profiles %}
|
|
profiles:
|
|
{{ kube_scheduler_profiles | to_nice_yaml(indent=2, width=256) }}
|
|
{% endif %}
|
|
{% for key in kube_scheduler_config_extra_opts %}
|
|
{{ key }}: {{ kube_scheduler_config_extra_opts[key] }}
|
|
{% endfor %}
|