-
Notifications
You must be signed in to change notification settings - Fork 386
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
Preserve client IP if the selected Endpoint is local regardless of ExternalTrafficPolicy #3604
Conversation
Codecov Report
@@ Coverage Diff @@
## main #3604 +/- ##
==========================================
- Coverage 64.66% 57.68% -6.99%
==========================================
Files 278 392 +114
Lines 39363 55216 +15853
==========================================
+ Hits 25454 31849 +6395
- Misses 11939 20921 +8982
- Partials 1970 2446 +476
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but would defer to @jianjuns to say whether it makes sense.
I would suggest to change the title to "Preserve client IP if the selected Endpoint is local regardless of ExternalTrafficPolicy"
a229f74
to
3154fd1
Compare
/test-all-features-conformance |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the change is fine.
/test-e2e |
I found that there is bug when noEncap mode. |
3154fd1
to
31e72d0
Compare
31e72d0
to
712a492
Compare
/test-all-features-conformance |
/test-networkpolicy |
/test-windows-networkpolicy |
1 similar comment
/test-windows-networkpolicy |
712a492
to
7db1576
Compare
/test-all-features-conformance |
7db1576
to
d4fe443
Compare
b945cba
to
0600b80
Compare
/test-all-features-conformance |
/test-windows-conformance |
/test-windows-conformance |
/test-ipv6-e2e |
/test-ipv6-e2e |
@tnqn Do you have any further comments? Thanks. |
/test-ipv6-e2e |
1 similar comment
/test-ipv6-e2e |
…ternalTrafficPolicy When an external client accesses to a NodePort / LoadBalancer Service on a K8s Node, if the selected Endpoint is just on the K8s Node, then don't SNAT the connection even the externalTrafficPolicy of the Service is Cluster. Signed-off-by: Hongliang Liu <lhongliang@vmware.com>
0600b80
to
2861fe4
Compare
/test-all-features-conformance |
/test-e2e |
/test-all-features-conformance |
/test-all-features-conformance |
/test-networkpolicy |
/test-networkpolicy |
/test-networkpolicy |
/test-networkpolicy |
1 similar comment
/test-networkpolicy |
/test-networkpolicy |
/test-ipv6-e2e |
1 similar comment
/test-ipv6-e2e |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
When an external client accesses to a NodePort / LoadBalancer Service on a K8s
Node, if the selected Endpoint is just on the K8s Node, then don't SNAT the
connection even the externalTrafficPolicy of the Service is Cluster.
Signed-off-by: Hongliang Liu lhongliang@vmware.com