Skip to content

Commit

Permalink
Adjust kubelet_event_record_qps to K8S default (#10826)
Browse files Browse the repository at this point in the history
Also remove redundant check in the kubelet config template (we define a
default, so the setting will always be "true")
  • Loading branch information
VannTen authored Jan 22, 2024
1 parent a2ed5fc commit 22bb097
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,7 @@ tlsCipherSuites:
- {{ tls }}
{% endfor %}
{% endif %}
{% if kubelet_event_record_qps %}
eventRecordQPS: {{ kubelet_event_record_qps }}
{% endif %}
shutdownGracePeriod: {{ kubelet_shutdown_grace_period }}
shutdownGracePeriodCriticalPods: {{ kubelet_shutdown_grace_period_critical_pods }}
{% if not kubelet_fail_swap_on %}
Expand Down
4 changes: 2 additions & 2 deletions roles/kubespray-defaults/defaults/main/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -645,9 +645,9 @@ host_os: >-
{{ ansible_system }}
{%- endif -%}
# Sets the eventRecordQPS parameter in kubelet-config.yaml. The default value is 5 (see types.go)
# Sets the eventRecordQPS parameter in kubelet-config.yaml.
# Setting it to 0 allows unlimited requests per second.
kubelet_event_record_qps: 5
kubelet_event_record_qps: 50

proxy_env_defaults:
http_proxy: "{{ http_proxy | default('') }}"
Expand Down

0 comments on commit 22bb097

Please sign in to comment.