NodePortLocal rules for a particular Pod are missing while the NPL annotation is present #6527
Labels
area/proxy/nodeportlocal
Issues or PRs related to the NodePortLocal feature
kind/bug
Categorizes issue or PR as related to a bug.
reported-by/end-user
Issues reported by end users.
Milestone
Describe the bug
The symptom of the issue is as below:
nodeportlocal.antrea.io
annotation correctly.The issue is because the service's endpoint pod had the same IP as a terminated Pod (because the IP was recycled, which is legit), and at some point the terminated Pod was deleted, causing iptables rule associated with the Pod IP was deleted.
A workaround to recover the issue is to restart antrea-agent on that node, which makes it rebuild its cache and re-install the missing iptables rules.
A proper fix will need to take IP recycle and the case of terminated Pods into consideration, ensuring rules bound to Pod itself, instead of its IP.
To Reproduce
Versions:
v2.0.x <= v2.0.1
v1.15.x <= v1.15.2
all <= v1.14
The text was updated successfully, but these errors were encountered: