Add a high priority rule to handle link-local traffic via local route table in SGPP Mode for both IPV4 and IPV6. #3148
+300
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
bug-fix
Which issue does this PR fix?:
#2797
What does this PR do / Why do we need it?:
When POD_SECURITY_GROUP_ENFORCING_MODE is set to strict, pods with SGPP configured have their traffic routed over a branch ENI and thus entirely bypass the primary interface on the node.
Thus pods with SGPP strict mode, will fail to reach link-local addresses. This change ensures that when SGPP is configured in the strict mode, the link-local traffic goes through local route table. This is similar to how ICMPv6 packets from the gateway is handled currently for strict mode.
Testing Information
before this change - the nodes in EKS cluster with SGPP=strict will have the route table.
after this this change.
169.254.0.0/16 to 169.254.0.0/16
is added by this change.