-
Notifications
You must be signed in to change notification settings - Fork 459
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] VPC Nat Gateway iptables doesn't reconcile on node reboot #5029
Comments
I found some similar closed issues that might be relevant to your problem:
The Kube-OVN controller handles iptables rule persistence and reconciliation for the VPC NAT Gateway during pod restarts by reapplying the necessary rules and configurations when a NAT Gateway pod is initialized or updated. This involves using the Additionally, the init container in the VPC NAT Gateway StatefulSet plays a crucial role in setting up necessary iptables rules and configurations during initialization. This ensures that the iptables rules are correctly applied and reconciled [3]. It seems like the issue you're experiencing might be related to the initialization process not being triggered correctly after a node reboot. You might want to check if the init container is functioning as expected and if the necessary annotations are being applied to the pod. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
We are missing the mechanism to reconcile VPC NAT Gateway IPTables, and we need to add this functionality. @zhangzujian , do we have a similar issue with the new egress gateway? |
VPC Egress Gateway uses a different implement. Routes and iptables rules are added/configured on pod initialization. |
@zhangzujian is this a new feature in the incoming release ? If nat-gateway has to stay, can this be fixed because this will have a hug impact if we move to production with current limitation. |
It's a new feature introduced in v1.14.0. Here is the document. |
@zhangzujian thank you, this is great. Really looking forward to it. Will this have in the future EIP/FIP features as well ? |
No. It focuses on egress traffic only. |
Kube-OVN Version
v1.13.1
Kubernetes Version
Client Version: v1.30.10
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.30.10
Operation-system/Kernel Version
"Rocky Linux 8.10 (Green Obsidian)"
4.18.0-513.5.1.el8_9.x86_64
Description
VPC nat gateway running on a node e.g.
if the node on which vpc-gateway reboot ( force reboot for testing). With node reboot, pod reboot e.g. below 1 restart. It seems like with restart it looses all iptable state e.g. EIP/FIP etc.
I see below logs in the ovn controller.
but inside the nat-gateway-pod, nothing. e.g.
If I manually bounce the pod after node is up, everything comes up correctly.
the controllers logs different also.
Steps To Reproduce
1- deploy vpc nat gateway
2- config eip/snat
3- reboot the node on which nat-gateway is running
4- once the node back up again, nat-gateway pod looses iptables-state.
Current Behavior
iptables config inside the nat-gateway is lost on node reboot.
Expected Behavior
iptables config should be reconcile correctly even if the node is rebooted, same like when gateway pod is manually rebooted.
The text was updated successfully, but these errors were encountered: