Browse Source
optimize the format of evictionHard in kubelet-config.yaml template (#9204)
pull/9210/head
Shelming.Song
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
roles/kubernetes/node/templates/kubelet-config.v1beta1.yaml.j2
|
@ -104,10 +104,10 @@ systemReserved: |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
{% if is_kube_master|bool and eviction_hard_control_plane is defined and eviction_hard_control_plane %} |
|
|
{% if is_kube_master|bool and eviction_hard_control_plane is defined and eviction_hard_control_plane %} |
|
|
evictionHard: |
|
|
evictionHard: |
|
|
{{ eviction_hard_control_plane | to_nice_yaml(indent=2) }} |
|
|
|
|
|
|
|
|
{{ eviction_hard_control_plane | to_nice_yaml(indent=2) | indent(2) }} |
|
|
{% elif not is_kube_master|bool and eviction_hard is defined and eviction_hard %} |
|
|
{% elif not is_kube_master|bool and eviction_hard is defined and eviction_hard %} |
|
|
evictionHard: |
|
|
evictionHard: |
|
|
{{ eviction_hard | to_nice_yaml(indent=2) }} |
|
|
|
|
|
|
|
|
{{ eviction_hard | to_nice_yaml(indent=2) | indent(2) }} |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
resolvConf: "{{ kube_resolv_conf }}" |
|
|
resolvConf: "{{ kube_resolv_conf }}" |
|
|
{% if kubelet_config_extra_args %} |
|
|
{% if kubelet_config_extra_args %} |
|
|