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

@@ -68,6 +68,12 @@ kubelet_load_modules: false
# default is equal to application default
kubelet_max_pods: 110
## Support parameters to be passed to kubelet via kubelet-config.yaml
kubelet_config_extra_args: {}
## Support parameters to be passed to kubelet via kubelet-config.yaml only on nodes, not masters
kubelet_node_config_extra_args: {}
## Support custom flags to be passed to kubelet
kubelet_custom_flags: []

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 %}