feat: add eviction hard to kubelet config (#8421)

Signed-off-by: Cyril Corbon <corboncyril@gmail.com>
This commit is contained in:
cyril-corbon
2022-01-24 09:13:57 +01:00
committed by GitHub
parent 69f088bb82
commit 575e0ca457
3 changed files with 17 additions and 0 deletions

View File

@@ -77,6 +77,13 @@ systemReserved:
memory: {{ system_memory_reserved }}
{% endif %}
{% endif %}
{% if is_kube_master|bool and eviction_hard_control_plane is defined and eviction_hard_control_plane %}
evictionHard:
{{ eviction_hard_control_plane | to_nice_yaml(indent=2) }}
{% elif not is_kube_master|bool and eviction_hard is defined and eviction_hard %}
evictionHard:
{{ eviction_hard | to_nice_yaml(indent=2) }}
{% endif %}
resolvConf: "{{ kube_resolv_conf }}"
{% if kubelet_config_extra_args %}
{{ kubelet_config_extra_args | to_nice_yaml(indent=2) }}