Browse Source

Allow the eventRecordQPS setting to be set. (#6880)

* Allow the eventRecordQPS setting to be set.

The eventRecordQPS parameter controls rate limiting for event recording. When zero, unlimited events can cause denial-of-service situations. For my situation, I don't need more than a setting of "5". This change allows me to configure the setting before creating the cluster.

* Allow the eventRecordQPS setting to be set.

The default settings (see types.go) is five. So, this change does not affect the cluster provisioning. However, it does allow for the setting to be changed.
pull/6244/head
David Medinets 4 years ago
committed by GitHub
parent
commit
fefcb8c9f8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions
  1. 3
      roles/kubernetes/node/templates/kubelet-config.v1beta1.yaml.j2
  2. 4
      roles/kubespray-defaults/defaults/main.yaml

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

@ -91,3 +91,6 @@ tlsCipherSuites:
- {{ tls }}
{% endfor %}
{% endif %}
{% if kubelet_event_record_qps %}
eventRecordQPS: {{ kubelet_event_record_qps }}
{% endif %}

4
roles/kubespray-defaults/defaults/main.yaml

@ -534,3 +534,7 @@ host_architecture: >-
{%- else -%}
{{ ansible_architecture }}
{%- endif -%}
# Sets the eventRecordQPS parameter in kubelet-config.yaml. The default value is 5 (see types.go)
# Setting it to 0 allows unlimited requests per second.
kubelet_event_record_qps: 5
Loading…
Cancel
Save