Move kube_feature_gates to kubelet config (#8048)

to remove deprecation warning:

> Flag --feature-gates has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag.
This commit is contained in:
Ilya Margolin
2021-10-05 15:07:10 +02:00
committed by GitHub
parent c5c10067ed
commit 41e0ca3f85
2 changed files with 7 additions and 1 deletions

View File

@@ -84,6 +84,12 @@ resolvConf: "{{ kube_resolv_conf }}"
{% if inventory_hostname in groups['kube_node'] and kubelet_node_config_extra_args %}
{{ kubelet_node_config_extra_args | to_nice_yaml(indent=2) }}
{% endif %}
{% if kube_feature_gates %}
featureGates:
{% for feature in kube_feature_gates %}
{{ feature|replace("=", ": ") }}
{% endfor %}
{% endif %}
{% if tls_min_version is defined %}
tlsMinVersion: {{ tls_min_version }}
{% endif %}