Skip to content

Commit aee5d36

Browse files
authored
Merge pull request kubernetes#6203 from tengqm/event-rate-limit
Document the EventRateLimit admission controller
2 parents 89f4f01 + 33aa282 commit aee5d36

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

docs/admin/admission-controllers.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,42 @@ If your cluster supports containers that run with escalated privileges, and you
101101
restrict the ability of end-users to exec commands in those containers, we strongly encourage
102102
enabling this plug-in.
103103

104+
### EventRateLimit (alpha)
105+
106+
This plug-in is introduced in v1.9 to mitigate the problem where the API server gets flooded by
107+
event requests. The cluster admin can specify event rate limits by:
108+
109+
* Ensuring that `eventratelimit.admission.k8s.io/v1alpha1=true` is included in the
110+
`--runtime-config` flag for the API server;
111+
* Enabling the `EventRateLimit` admission controller;
112+
* Including a `EventRateLimit` configuration in the file provided to the API
113+
server's command line flag `--admission-control-config-file`.
114+
115+
There are four types of limits that can be specified in the configuration:
116+
117+
* `Server`: All event requests received by the API server share a single bucket.
118+
* `Namespace`: Each namespace has a dedicated bucket.
119+
* `User`: Each user is allocated a bucket.
120+
* `SourceAndObject`: A bucket is assigned by each combination of source and
121+
involved object of the event.
122+
123+
Below is a sample snippet for such a configuration:
124+
125+
```yaml
126+
EventRateLimit:
127+
limits:
128+
- type: Namespace
129+
qps: 50
130+
burst: 100
131+
cacheSize: 2000
132+
- type: User
133+
qps: 10
134+
burst: 50
135+
```
136+
137+
See the [EventRateLimit proposal](https://git.k8s.io/community/contributors/design-proposals/api-machinery/admission_control_event_rate_limit.md)
138+
for more details.
139+
104140
### GenericAdmissionWebhook (alpha)
105141
106142
This plug-in is related to the [Dynamic Admission Control](/docs/admin/extensible-admission-controllers)

0 commit comments

Comments
 (0)