Allow configuring container log limits for Kubelet (#6933)
This commit is contained in:
parent
e909f84966
commit
7938748d77
2 changed files with 8 additions and 0 deletions
|
@ -69,6 +69,12 @@ kubelet_config_extra_args: {}
|
||||||
## Support parameters to be passed to kubelet via kubelet-config.yaml only on nodes, not masters
|
## Support parameters to be passed to kubelet via kubelet-config.yaml only on nodes, not masters
|
||||||
kubelet_node_config_extra_args: {}
|
kubelet_node_config_extra_args: {}
|
||||||
|
|
||||||
|
# Maximum number of container log files that can be present for a container.
|
||||||
|
kubelet_logfiles_max_nr: 5
|
||||||
|
|
||||||
|
# Maximum size of the container log file before it is rotated
|
||||||
|
kubelet_logfiles_max_size: 10Mi
|
||||||
|
|
||||||
## Support custom flags to be passed to kubelet
|
## Support custom flags to be passed to kubelet
|
||||||
kubelet_custom_flags: []
|
kubelet_custom_flags: []
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,8 @@ enforceNodeAllocatable:
|
||||||
{% endif %}
|
{% endif %}
|
||||||
staticPodPath: {{ kube_manifest_dir }}
|
staticPodPath: {{ kube_manifest_dir }}
|
||||||
cgroupDriver: {{ kubelet_cgroup_driver|default(kubelet_cgroup_driver_detected) }}
|
cgroupDriver: {{ kubelet_cgroup_driver|default(kubelet_cgroup_driver_detected) }}
|
||||||
|
containerLogMaxFiles: {{ kubelet_logfiles_max_nr }}
|
||||||
|
containerLogMaxSize: {{ kubelet_logfiles_max_size }}
|
||||||
maxPods: {{ kubelet_max_pods }}
|
maxPods: {{ kubelet_max_pods }}
|
||||||
address: {{ kubelet_bind_address }}
|
address: {{ kubelet_bind_address }}
|
||||||
readOnlyPort: {{ kube_read_only_port }}
|
readOnlyPort: {{ kube_read_only_port }}
|
||||||
|
|
Loading…
Reference in a new issue