|
@ -23,7 +23,7 @@ enforceNodeAllocatable: |
|
|
{% endfor %} |
|
|
{% endfor %} |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
staticPodPath: {{ kube_manifest_dir }} |
|
|
staticPodPath: {{ kube_manifest_dir }} |
|
|
cgroupDriver: {{ kubelet_cgroup_driver }} |
|
|
|
|
|
|
|
|
cgroupDriver: {{ kubelet_cgroup_driver | default('systemd') }} |
|
|
containerLogMaxFiles: {{ kubelet_logfiles_max_nr }} |
|
|
containerLogMaxFiles: {{ kubelet_logfiles_max_nr }} |
|
|
containerLogMaxSize: {{ kubelet_logfiles_max_size }} |
|
|
containerLogMaxSize: {{ kubelet_logfiles_max_size }} |
|
|
maxPods: {{ kubelet_max_pods }} |
|
|
maxPods: {{ kubelet_max_pods }} |
|
@ -63,18 +63,30 @@ kubeReserved: |
|
|
{% if is_kube_master|bool %} |
|
|
{% if is_kube_master|bool %} |
|
|
cpu: {{ kube_master_cpu_reserved }} |
|
|
cpu: {{ kube_master_cpu_reserved }} |
|
|
memory: {{ kube_master_memory_reserved }} |
|
|
memory: {{ kube_master_memory_reserved }} |
|
|
|
|
|
{% if kube_master_ephemeral_storage_reserved is defined %} |
|
|
|
|
|
ephemeral-storage: {{ kube_master_ephemeral_storage_reserved }} |
|
|
|
|
|
{% endif %} |
|
|
{% else %} |
|
|
{% else %} |
|
|
cpu: {{ kube_cpu_reserved }} |
|
|
cpu: {{ kube_cpu_reserved }} |
|
|
memory: {{ kube_memory_reserved }} |
|
|
memory: {{ kube_memory_reserved }} |
|
|
|
|
|
{% if kube_ephemeral_storage_reserved is defined %} |
|
|
|
|
|
ephemeral-storage: {{ kube_ephemeral_storage_reserved }} |
|
|
|
|
|
{% endif %} |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
{% if system_reserved is defined and system_reserved %} |
|
|
{% if system_reserved is defined and system_reserved %} |
|
|
systemReserved: |
|
|
systemReserved: |
|
|
{% if is_kube_master|bool %} |
|
|
{% if is_kube_master|bool %} |
|
|
cpu: {{ system_master_cpu_reserved }} |
|
|
cpu: {{ system_master_cpu_reserved }} |
|
|
memory: {{ system_master_memory_reserved }} |
|
|
memory: {{ system_master_memory_reserved }} |
|
|
|
|
|
{% if system_master_ephemeral_storage_reserved is defined %} |
|
|
|
|
|
ephemeral-storage: {{ system_master_ephemeral_storage_reserved }} |
|
|
|
|
|
{% endif %} |
|
|
{% else %} |
|
|
{% else %} |
|
|
cpu: {{ system_cpu_reserved }} |
|
|
cpu: {{ system_cpu_reserved }} |
|
|
memory: {{ system_memory_reserved }} |
|
|
memory: {{ system_memory_reserved }} |
|
|
|
|
|
{% if system_ephemeral_storage_reserved is defined %} |
|
|
|
|
|
ephemeral-storage: {{ system_ephemeral_storage_reserved }} |
|
|
|
|
|
{% endif %} |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
{% 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 %} |
|
|