-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description
We are seeing a race condition on freshly booted EKS worker nodes where pods using hostPort fail during PodSandbox creation due to iptables errors:
iptables v1.8.x (nf_tables): Couldn't load match 'comment'
This happens early in node startup, before the node is fully stabilized.
Environment
Node AMIs: EKS Optimized Amazon Linux 2023
Container runtime: containerd
iptables backend: nft (xtables-nft-multi)
Kernel module involved: xt_comment
Affected workloads: DaemonSets using hostPort (e.g., monitoring agents)
On a fresh node:
- Node boots
- containerd starts
- kubelet starts
- DaemonSet pod with hostPort schedules immediately
- kubelet calls CreatePodSandbox
- CNI runs portmap to configure hostPort rules
- iptables rule using -m comment fails:
Couldn't load match 'comment'
CNI ADD fails
- PodSandbox creation fails with .
Error Message:Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox: plugin type="portmap" failed (add): unable to create chain CNI-HOSTPORT-SETMARK: running [/usr/sbin/iptables -t nat -C CNI-HOSTPORT-SETMARK -m comment --comment CNI portfwd masquerade mark -j MARK --set-xmark 0x2000/0x2000 --wait]: exit status 2: iptables v1.8.8 (nf_tables): Couldn't load matchcomment':No such file or directory` - Pod remains stuck in Pending / Init:0/X
- Later on the same node:
- xt_comment exists on disk
- iptables -m comment works when run manually
But the affected pods remain stuck . new pods also has the same behavior
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working