kubelet_config_extra_args and kubelet_node_config_extra_args (#5623)

* Introduce kubelet_config_extra_args and kubelet_node_config_extra_args to pass params to kubelet via YAML config

* kubelet_config_extra_args is not the alternative
This commit is contained in:
Erwan Miran
2020-02-15 01:05:28 +01:00
committed by GitHub
parent d86229dc2b
commit 26700e7882
3 changed files with 39 additions and 5 deletions

View File

@@ -70,3 +70,9 @@ systemReserved:
{% endif %}
{% endif %}
resolvConf: "{{ kube_resolv_conf }}"
{% if kubelet_config_extra_args %}
{{ kubelet_config_extra_args | to_nice_yaml(indent=2) }}
{% endif %}
{% if inventory_hostname in groups['kube-node'] and kubelet_node_config_extra_args %}
{{ kubelet_node_config_extra_args | to_nice_yaml(indent=2) }}
{% endif %}