Review kubelet iptables utility-chain settings

Check the kubelet iptables utility-chain settings required by the node network configuration.

Description

The chains a kubelet manages through makeIPTablesUtilChains depend on its version. Current kubelets create KUBE-IPTABLES-HINT so other components can identify the system’s iptables configuration.

Potential impact

Connectivity can fail on a node if its network plugin relies on a chain the kubelet no longer creates.

Remediation

Check the node version and network plugin requirements. Keep makeIPTablesUtilChains: true where needed and verify the effective setting against the startup arguments. Test required traffic and confirm that firewall and network policies block unwanted access.

Examples

The excerpts change the legacy --make-iptables-util-chains argument from false to true. The foo/bar image is a placeholder. Make the change in the actual node kubelet configuration.

Before

yaml
apiVersion: v1
kind: Pod
metadata:
  name: command-demo
spec:
  containers:
    - name: command-demo-container
      image: foo/bar
      command: ["kubelet"]
      args: ["--make-iptables-util-chains=false"]

After

yaml
apiVersion: v1
kind: Pod
metadata:
  name: command-demo
spec:
  containers:
    - name: command-demo-container
      image: foo/bar
      command: ["kubelet"]
      args: ["--make-iptables-util-chains=true"]

References