|
|
@ -27,6 +27,7 @@ cgroupDriver: {{ kubelet_cgroup_driver | default('systemd') }} |
|
|
|
containerLogMaxFiles: {{ kubelet_logfiles_max_nr }} |
|
|
|
containerLogMaxSize: {{ kubelet_logfiles_max_size }} |
|
|
|
maxPods: {{ kubelet_max_pods }} |
|
|
|
podPidsLimit: {{ kubelet_pod_pids_limit }} |
|
|
|
address: {{ kubelet_bind_address }} |
|
|
|
readOnlyPort: {{ kube_read_only_port }} |
|
|
|
healthzPort: {{ kubelet_healthz_port }} |
|
|
@ -66,12 +67,18 @@ kubeReserved: |
|
|
|
{% if kube_master_ephemeral_storage_reserved is defined %} |
|
|
|
ephemeral-storage: {{ kube_master_ephemeral_storage_reserved }} |
|
|
|
{% endif %} |
|
|
|
{% if kube_master_pid_reserved is defined %} |
|
|
|
pid: {{ kube_master_pid_reserved }} |
|
|
|
{% endif %} |
|
|
|
{% else %} |
|
|
|
cpu: {{ kube_cpu_reserved }} |
|
|
|
memory: {{ kube_memory_reserved }} |
|
|
|
{% if kube_ephemeral_storage_reserved is defined %} |
|
|
|
ephemeral-storage: {{ kube_ephemeral_storage_reserved }} |
|
|
|
{% endif %} |
|
|
|
{% if kube_pid_reserved is defined %} |
|
|
|
pid: {{ kube_pid_reserved }} |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
{% if system_reserved is defined and system_reserved %} |
|
|
|
systemReserved: |
|
|
@ -81,12 +88,18 @@ systemReserved: |
|
|
|
{% if system_master_ephemeral_storage_reserved is defined %} |
|
|
|
ephemeral-storage: {{ system_master_ephemeral_storage_reserved }} |
|
|
|
{% endif %} |
|
|
|
{% if system_master_pid_reserved is defined %} |
|
|
|
pid: {{ system_master_pid_reserved }} |
|
|
|
{% endif %} |
|
|
|
{% else %} |
|
|
|
cpu: {{ system_cpu_reserved }} |
|
|
|
memory: {{ system_memory_reserved }} |
|
|
|
{% if system_ephemeral_storage_reserved is defined %} |
|
|
|
ephemeral-storage: {{ system_ephemeral_storage_reserved }} |
|
|
|
{% endif %} |
|
|
|
{% if system_pid_reserved is defined %} |
|
|
|
pid: {{ system_pid_reserved }} |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
{% if is_kube_master|bool and eviction_hard_control_plane is defined and eviction_hard_control_plane %} |
|
|
|