Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
7938748d
Unverified
Commit
7938748d
authored
4 years ago
by
Bas van den Brink
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Allow configuring container log limits for Kubelet (#6933)
parent
e909f849
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/kubernetes/node/defaults/main.yml
+6
-0
6 additions, 0 deletions
roles/kubernetes/node/defaults/main.yml
roles/kubernetes/node/templates/kubelet-config.v1beta1.yaml.j2
+2
-0
2 additions, 0 deletions
.../kubernetes/node/templates/kubelet-config.v1beta1.yaml.j2
with
8 additions
and
0 deletions
roles/kubernetes/node/defaults/main.yml
+
6
−
0
View file @
7938748d
...
...
@@ -69,6 +69,12 @@ kubelet_config_extra_args: {}
## Support parameters to be passed to kubelet via kubelet-config.yaml only on nodes, not masters
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
kubelet_custom_flags
:
[]
...
...
This diff is collapsed.
Click to expand it.
roles/kubernetes/node/templates/kubelet-config.v1beta1.yaml.j2
+
2
−
0
View file @
7938748d
...
...
@@ -24,6 +24,8 @@ enforceNodeAllocatable:
{% endif %}
staticPodPath: {{ kube_manifest_dir }}
cgroupDriver: {{ kubelet_cgroup_driver|default(kubelet_cgroup_driver_detected) }}
containerLogMaxFiles: {{ kubelet_logfiles_max_nr }}
containerLogMaxSize: {{ kubelet_logfiles_max_size }}
maxPods: {{ kubelet_max_pods }}
address: {{ kubelet_bind_address }}
readOnlyPort: {{ kube_read_only_port }}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment