mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-10 12:18:52 +03:00
metrics-server: Unconditional control-plane tolerations
There is no harm on having unneeded toleration when control-plane node are not tainted, so simplify the template to always use the toleration.
This commit is contained in:
@@ -85,15 +85,11 @@ spec:
|
||||
volumes:
|
||||
- name: tmp
|
||||
emptyDir: {}
|
||||
{% if not control_plane_nodes_are_not_tainted or metrics_server_extra_tolerations is defined %}
|
||||
tolerations:
|
||||
{% if not control_plane_nodes_are_not_tainted %}
|
||||
- key: node-role.kubernetes.io/control-plane
|
||||
effect: NoSchedule
|
||||
{% endif %}
|
||||
{% if metrics_server_extra_tolerations is defined %}
|
||||
{{ metrics_server_extra_tolerations | list | to_nice_yaml(indent=2) | indent(8) }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
affinity:
|
||||
podAntiAffinity:
|
||||
|
||||
Reference in New Issue
Block a user