-
Notifications
You must be signed in to change notification settings - Fork 742
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
Use local store for Pods using Security group #1313
Comments
For v1: We should read the data from ApiServer and populate the local file. There are two options available when pod gets same vlanID for whatever reason -
|
/assign Shreya027 |
Since the detailed impact of the issue is not covered any place else. I will put all the info from my investigation in this thread. IPAMD relies on the Pod Object from the API Server to get the Pod Annotation which has the IPv4 address and other details. These details are required to clean up the host networking. On setting the
I believe the first issue is not as harmful as the second one. The second issue can happen to pods that are using the same namespace/name and happen to land up on same Node. Here's an example of the second issue, Running Pod
Pod's ENI details from the Pod's Annotation
ip link for the Pod is UP
ip rule for this pod is missing
route table 100 + 1(vlan id) is present though
Sequence of events from the plugin.logs
I am able to exec into this Pod. However, networking to and from the Pod is lost due to the issue. Current recommendation is to set |
With 1.10.2 release, we use the previous result instead of querying API Server. Closing this issue. |
|
@abhipth I referred to your excellent explanation in awsdocs/amazon-eks-user-guide#557 |
What happened:
When ENABLE_POD_ENI is set to true, on deletion path we query APIServer to retrieve ENI information for pods using security group. This adds APIServer query on the deletion path. This can be avoided if we use local store to find the vlanID.
Code:
https://github.com/aws/amazon-vpc-cni-k8s/blob/master/pkg/ipamd/rpc_handler.go#L198
The text was updated successfully, but these errors were encountered: