Review Kubernetes kubelet event rate settings

Balance event visibility against API server load.

Description

eventRecordQPS limits the number of Events a kubelet creates per second. Set it to 0 only if that kubelet should impose no rate limit.

Potential impact

A low limit can suppress Events needed for diagnosis. Without a limit, a burst of Events can overload the API server or its storage.

Remediation

Choose a value in KubeletConfiguration using observed Event rates and API server capacity. For a positive value, also review the burst allowance in eventBurst. Check for an overriding --event-qps argument, then verify collection and API server load during an Event burst.

Examples

The first configuration limits the rate to two Events per second. The second removes only the kubelet limit. API server limits and Event retention policies still apply.

Before

yaml
apiVersion: kubelet.config.k8s.io/v1beta1
kind: KubeletConfiguration
eventRecordQPS: 2

After

yaml
apiVersion: kubelet.config.k8s.io/v1beta1
kind: KubeletConfiguration
eventRecordQPS: 0

References