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
62f34c60
Unverified
Commit
62f34c60
authored
2 years ago
by
Jack
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
add image garbage collection (#9832)
parent
d908e865
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/vars.md
+9
-0
9 additions, 0 deletions
docs/vars.md
roles/kubernetes/node/templates/kubelet-config.v1beta1.yaml.j2
+6
-0
6 additions, 0 deletions
.../kubernetes/node/templates/kubelet-config.v1beta1.yaml.j2
with
15 additions
and
0 deletions
docs/vars.md
+
9
−
0
View file @
62f34c60
...
...
@@ -205,6 +205,15 @@ Stack](https://github.com/kubernetes-sigs/kubespray/blob/master/docs/dns-stack.m
*
*kubelet_streaming_connection_idle_timeout*
- Set the maximum time a streaming connection can be idle before the connection is automatically closed.
*
*kubelet_image_gc_high_threshold*
- Set the percent of disk usage after which image garbage collection is always run.
The percent is calculated by dividing this field value by 100, so this field must be between 0 and 100, inclusive.
When specified, the value must be greater than imageGCLowThresholdPercent. Default: 85
*
*kubelet_image_gc_low_threshold*
- Set the percent of disk usage before which image garbage collection is never run.
Lowest disk usage to garbage collect to.
The percent is calculated by dividing this field value by 100, so the field value must be between 0 and 100, inclusive.
When specified, the value must be less than imageGCHighThresholdPercent. Default: 80
*
*kubelet_make_iptables_util_chains*
- If
`true`
, causes the kubelet ensures a set of
`iptables`
rules are present on host.
*
*kubelet_systemd_hardening*
- If
`true`
, provides kubelet systemd service with security features for isolation.
...
...
This diff is collapsed.
Click to expand it.
roles/kubernetes/node/templates/kubelet-config.v1beta1.yaml.j2
+
6
−
0
View file @
62f34c60
...
...
@@ -147,6 +147,12 @@ memorySwap:
{% if kubelet_streaming_connection_idle_timeout is defined %}
streamingConnectionIdleTimeout: {{ kubelet_streaming_connection_idle_timeout }}
{% endif %}
{% if kubelet_image_gc_high_threshold is defined %}
imageGCHighThresholdPercent: {{ kubelet_image_gc_high_threshold }}
{% endif %}
{% if kubelet_image_gc_low_threshold is defined %}
imageGCLowThresholdPercent: {{ kubelet_image_gc_low_threshold }}
{% endif %}
{% if kubelet_make_iptables_util_chains is defined %}
makeIPTablesUtilChains: {{ kubelet_make_iptables_util_chains | bool }}
{% endif %}
...
...
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