2.1.7 Ensure that the --make-iptables-util-chains argument is set to true

Information

Allow Kubelet to manage iptables.

Rationale:

Kubelets can automatically manage the required changes to iptables based on how you choose your networking options for the pods. It is recommended to let kubelets manage the changes to iptables. This ensures that the iptables configuration remains in sync with pods networking configuration. Manually configuring iptables with dynamic pod network configuration changes might hamper the communication between pods/containers and to the outside world. You might have iptables rules too restrictive or too open.

Solution

If using a Kubelet config file, edit the file to set 'makeIPTablesUtilChains: true'.

If using command line arguments, edit the kubelet service file '/etc/systemd/system/kubelet.service.d/10-kubeadm.conf' on each worker node and remove the '--make-iptables-util-chains' argument from the 'KUBELET_SYSTEM_PODS_ARGS' variable.

Based on your system, restart the 'kubelet' service. For example:

systemctl daemon-reload
systemctl restart kubelet.service

See Also

https://workbench.cisecurity.org/files/2421

Item Details

Category: SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|SC-7(5), CSCv6|9

Plugin: Unix

Control ID: 42e1c7982f68fc542dad3cea264beceb9778e53fa07bd187a27c11df23a42310