Closed mchtech closed 11 months ago
doNotTrack
policy does not apply here and you cannot use it as a workaround for that missing feature which is k8s dependent and works for iptables mode only.
We will need to add a similar feature for the ebpf dataplane in calico.
Can I take this up? @tomastigera
@Bisht13 sure have fun :)
Related to the use-case at least: https://github.com/projectcalico/calico/issues/4689
Closing as duplicate of #4689
Expected Behavior
config
doNotTrack
GlobalNetworkPolicy:calico-node -bpf conntrack dump
should not output related conntrack itemCurrent Behavior
calico-node -bpf conntrack dump
outputs related conntrack items (seems that bpf still conntrackdoNotTrack
connections)Possible Solution
Steps to Reproduce (for bugs)
Context
node-local-dns supports setup "iptables NOTRACK" rules to reduce conntrack items from Pod to Host local ip: https://github.com/kubernetes/enhancements/blob/master/keps/sig-network/1024-nodelocal-cache-dns/README.md#iptables-notrack
udp conntrack timeout is 1min in calico-eBPF dataplane. (I don't find related docs to config calico-ebpf udp conntrack timeout) If app makes lots of short TCP connections (such as php app), dns udp 53 ebpf conntrack items will increase quickly but expire slowly.
Your Environment