More Info:
Verifies that the EventRateLimit admission plugin is enabled to limit the rate of API requests and protect the API server from denial-of-service.Risk Level
HighAddress
SecurityCompliance Standards
- CIS Kubernetes
Triage and Remediation
- Remediation
Remediation
Manual Steps
Manual Steps
-
Create the EventRateLimit configuration file (every control plane node)
-
Back up the existing API server static pod manifest (every control plane node)
-
Edit the API server manifest to enable EventRateLimit (every control plane node)
Open the file:In thespec.containers[0].commandlist:- Ensure
--enable-admission-pluginsincludesEventRateLimit(add it to the comma‑separated list, do not remove existing plugins), for example: - Add or update the admission config flag to point to the file you created:
- Ensure
-
Ensure the admission config files are mounted into the API server pod (every control plane node)
In the same manifest, under the containervolumeMounts, add if not present:Undervolumes, add if not present: -
Allow the API server to restart and stabilize (every control plane node)
Saving/etc/kubernetes/manifests/kube-apiserver.yamlcauses the kubelet to restart thekube-apiserverstatic pod automatically. Wait and confirm the pod is running: -
Verify EventRateLimit is enabled and configured (every control plane node)
Optionally, confirm the flag values inside the container:
Using kubectl
Using kubectl
kubectl cannot be used to enable the EventRateLimit admission plugin because this setting is defined in the API server’s static pod manifest on each control plane node at
/etc/kubernetes/manifests/kube-apiserver.yaml. To remediate this finding, follow the guidance in the Manual Steps section and update the host-level configuration directly on the control plane nodes.Automation
Automation

