Skip to main content

More Info:

The kubelet eventRecordQPS should be set to a level that ensures appropriate event capture for monitoring without dropping important events.

Risk Level

Medium

Address

Security

Compliance Standards

  • CIS AKS

Triage and Remediation

Remediation

Manual Steps

  1. On every worker node, open the kubelet config file and set eventRecordQPS to an appropriate value (example: 5):
  2. On every worker node, ensure no conflicting --eventRecordQPS flag is present in the kubelet systemd drop-in; remove or adjust any such flag:
    Then, if you need to set it via args instead of config file, append it explicitly:
  3. On every worker node, reload systemd and restart kubelet to apply the changes:
  4. On every worker node, confirm kubelet is healthy after restart:
  5. On every worker node, verify the running kubelet process reflects the desired eventRecordQPS setting:
    Check the command output for --eventRecordQPS=5 if using flags, or rely on the config file if the flag is absent and eventRecordQPS: 5 is present in /var/lib/kubelet/config.yaml.
Kubectl cannot modify kubelet host-level configuration such as /var/lib/kubelet/config.yaml or the systemd unit files on worker nodes. To remediate this finding, make the changes directly on each worker node’s filesystem and systemd configuration as described in the Manual Steps section.