Browse Source
add support for `EventRateLimit` plugin configuration (#8711)
add support for `EventRateLimit` plugin configuration (#8711)
* feat: add support for EventRateLimit admission plugin * docs: add documentation about admission_control_config_file and EventRateLimit configurationpull/8770/head
Alessio Greggi
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 110 additions and 0 deletions
Split View
Diff Options
-
40docs/vars.md
-
13roles/kubernetes/control-plane/defaults/main/main.yml
-
24roles/kubernetes/control-plane/tasks/kubeadm-setup.yml
-
9roles/kubernetes/control-plane/templates/admission-controls.v1beta2.yaml.j2
-
11roles/kubernetes/control-plane/templates/eventratelimit.v1beta2.yaml.j2
-
10roles/kubernetes/control-plane/templates/kubeadm-config.v1beta2.yaml.j2
-
3roles/kubernetes/control-plane/vars/main.yaml
@ -0,0 +1,9 @@ |
|||
apiVersion: apiserver.config.k8s.io/v1 |
|||
kind: AdmissionConfiguration |
|||
plugins: |
|||
{% for plugin in kube_apiserver_enable_admission_plugins[0].split(',') %} |
|||
{% if plugin in kube_apiserver_admission_plugins_needs_configuration %} |
|||
- name: {{ plugin }} |
|||
path: {{ kube_config_dir }}/{{ plugin|lower }}.yaml |
|||
{% endif %} |
|||
{% endfor %} |
@ -0,0 +1,11 @@ |
|||
apiVersion: eventratelimit.admission.k8s.io/v1alpha1 |
|||
kind: Configuration |
|||
limits: |
|||
{% for limit in kube_apiserver_admission_event_rate_limits.values() %} |
|||
- type: {{ limit.type }} |
|||
qps: {{ limit.qps }} |
|||
burst: {{ limit.burst }} |
|||
{% if limit.cache_size is defined %} |
|||
cacheSize: {{ limit.cache_size }} |
|||
{% endif %} |
|||
{% endfor %} |
@ -0,0 +1,3 @@ |
|||
--- |
|||
# list of admission plugins that needs to be configured |
|||
kube_apiserver_admission_plugins_needs_configuration: [EventRateLimit] |
Write
Preview
Loading…
Cancel
Save