Interview Prep/Kubernetes/Nodes, kubelet and container runtime

Pods on one node intermittently drop new connections, and the node's `dmesg` shows `nf_conntrack: table full, dropping packet`.

AdvancedTroubleshootingNodes, kubelet and container runtime
Answer

Likely causes → The conntrack table is full: a service making huge numbers of short connections (no keep-alive), DNS over UDP floods, or a small nf_conntrack_max on large nodes.

Diagnose →

sudo sysctl net.netfilter.nf_conntrack_count net.netfilter.nf_conntrack_max
sudo conntrack -S | head
sudo conntrack -L 2>/dev/null | awk '{print $3}' | sort | uniq -c | sort -rn | head

Fix → Raise the limit (kube-proxy sets it from conntrack.maxPerCore; adjust via kube-proxy config or sysctl), and fix the client: enable HTTP keep-alive and connection pooling, deploy NodeLocal DNSCache.

Prevent → Alert on conntrack usage above 75%; connection pooling in shared client libraries.

All Kubernetes questions

More on Nodes, kubelet and container runtime