Skip to main content

lacework-global-737

Ensure that the --streaming-connection-idle-timeout argument is not set to 0 (Automated)

Description

Do not disable timeouts on streaming connections.

Remediation

If using a Kubelet config file:

Edit the file to set streamingConnectionIdleTimeout to a value other than 0.

If using command line arguments:

Edit the kubelet service file /etc/systemd/system/kubelet.service.d/10-kubeadm.conf on each worker node and set the below parameter in KUBELET_SYSTEM_PODS_ARGS variable:

--streaming-connection-idle-timeout=5m

Reload the configuration to update it with the changes made using:

systemctl daemon-reload

Then restart the kubelet service using:

systemctl restart kubelet.service

References

https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/
https://kubernetes.io/docs/reference/command-line-tools-reference/kubelet/
https://github.com/kubernetes/kubernetes/pull/18552