Browse Source

Add options to control images pulling of kubelet (#11094)

Signed-off-by: tu1h <lihai.tu@daocloud.io>
pull/11318/head
Lihai Tu 5 months ago
committed by GitHub
parent
commit
921b0c0bed
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 0 deletions
  1. 2
      docs/ansible/vars.md
  2. 3
      roles/kubernetes/node/defaults/main.yml
  3. 1
      roles/kubernetes/node/templates/kubelet-config.v1beta1.yaml.j2

2
docs/ansible/vars.md

@ -216,6 +216,8 @@ Stack](https://github.com/kubernetes-sigs/kubespray/blob/master/docs/dns-stack.m
The percent is calculated by dividing this field value by 100, so the field value must be between 0 and 100, inclusive. 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 When specified, the value must be less than imageGCHighThresholdPercent. Default: 80
* *kubelet_max_parallel_image_pulls* - Sets the maximum number of image pulls in parallel. The value is `1` by default which means the default is serial image pulling, set it to a integer great than `1` to enable image pulling in parallel.
* *kubelet_make_iptables_util_chains* - If `true`, causes the kubelet ensures a set of `iptables` rules are present on host. * *kubelet_make_iptables_util_chains* - If `true`, causes the kubelet ensures a set of `iptables` rules are present on host.
* *kubelet_cpu_manager_policy* - If set to `static`, allows pods with certain resource characteristics to be granted increased CPU affinity and exclusivity on the node. And it should be set with `kube_reserved` or `system-reserved`, enable this with the following guide:[Control CPU Management Policies on the Node](https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/) * *kubelet_cpu_manager_policy* - If set to `static`, allows pods with certain resource characteristics to be granted increased CPU affinity and exclusivity on the node. And it should be set with `kube_reserved` or `system-reserved`, enable this with the following guide:[Control CPU Management Policies on the Node](https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/)

3
roles/kubernetes/node/defaults/main.yml

@ -268,3 +268,6 @@ conntrack_modules:
kubelet_tracing: false kubelet_tracing: false
kubelet_tracing_endpoint: 0.0.0.0:4317 kubelet_tracing_endpoint: 0.0.0.0:4317
kubelet_tracing_sampling_rate_per_million: 100 kubelet_tracing_sampling_rate_per_million: 100
# The maximum number of image pulls in parallel. Set it to a integer great than 1 to enable image pulling in parallel.
kubelet_max_parallel_image_pulls: 1

1
roles/kubernetes/node/templates/kubelet-config.v1beta1.yaml.j2

@ -175,3 +175,4 @@ tracing:
endpoint: {{ kubelet_tracing_endpoint }} endpoint: {{ kubelet_tracing_endpoint }}
samplingRatePerMillion: {{ kubelet_tracing_sampling_rate_per_million }} samplingRatePerMillion: {{ kubelet_tracing_sampling_rate_per_million }}
{% endif %} {% endif %}
maxParallelImagePulls: {{ kubelet_max_parallel_image_pulls }}
Loading…
Cancel
Save