Ensure the --make-iptables-util-chains argument is set to True
Error: The --make-iptables-util-chains argument is not set to True
Bridgecrew Policy ID: BC_K8S_101
Checkov Check ID: CKV_K8S_145
The --make-iptables-util-chains argument is not set to True
Allow Kubelet to manage iptables. 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.
Fix - Buildtime
- Resource: Pod
apiVersion: v1 kind: Pod metadata: creationTimestamp: null labels: component: kubelet tier: control-plane name: kubelet namespace: kube-system spec: containers: - command: + - kubelet + - --make-iptables-util-chains=true image: gcr.io/google_containers/kubelet-amd64:v1.6.0 ...
Updated 6 months ago