mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-08 11:07:43 +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:
@@ -1,9 +1,4 @@
|
||||
---
|
||||
# If all control plane nodes have the node role, there are no tainted control plane nodes and toleration should not be specified.
|
||||
- name: Check all control plane nodes are node or not
|
||||
set_fact:
|
||||
control_plane_nodes_are_not_tainted: "{{ groups['kube_node'] | intersect(groups['kube_control_plane']) == groups['kube_control_plane'] }}"
|
||||
|
||||
- name: Metrics Server | Delete addon dir
|
||||
file:
|
||||
path: "{{ kube_config_dir }}/addons/metrics_server"
|
||||
|
||||
Reference in New Issue
Block a user