EventRateLimit

Definition

EventRateLimit is a security mechanism used to control the rate at which events are processed by a system, preventing abuse or overloading. It is commonly implemented in systems that handle a high volume of requests, such as APIs or logging services, to ensure stability and availability by limiting the number of events processed within a specific timeframe.

Secure Settings Example

# Kubernetes Admission Controller Configuration
apiVersion: apiserver.config.k8s.io/v1
kind: AdmissionConfiguration
plugins:
- name: EventRateLimit
  configuration:
    apiVersion: eventratelimit.admission.k8s.io/v1alpha1
    kind: Configuration
    limits:
    - type: Server
      qps: 50
      burst: 100
    - type: Namespace
      qps: 10
      burst: 20
    - type: User
      qps: 5
      burst: 10

Insecure Settings Example

# Kubernetes Admission Controller Configuration with no rate limiting
apiVersion: apiserver.config.k8s.io/v1
kind: AdmissionConfiguration
plugins:
- name: EventRateLimit
  configuration:
    apiVersion: eventratelimit.admission.k8s.io/v1alpha1
    kind: Configuration
    limits: []