Skip to content
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

ipvlan support kube-proxy's ipvs mode #76

Merged

Conversation

zhiyuan0x
Copy link
Collaborator

@zhiyuan0x zhiyuan0x commented Dec 6, 2019

In ipvlan, skb redirected to host namespace is still with an old route info. If kube-proxy works on ipvs mode, these skb may be dropped by kernel route system. This PR use tunnel_key action to clear the route info and makes it work.

Zhiyuan Hou and others added 2 commits December 9, 2019 11:14
The PR vishvananda/netlink#499 has been
merged, update vendor to point new commit.

Signed-off-by: Zhiyuan Hou <[email protected]>
When redirecting a skb with valid route to ingress, l3 stack may drop
it. This patch uses tunnel_key to unset route before redirection.

Signed-off-by: Zhiyuan Hou <[email protected]>
@BSWANG
Copy link
Member

BSWANG commented Dec 9, 2019

@zhiyuan0x The CI failed. Pls update the golang.org/x/sys dependency by dep ensure -update golang.org/x/sys.

@zhiyuan0x
Copy link
Collaborator Author

@zhiyuan0x The CI failed. Pls update the golang.org/x/sys dependency by dep ensure -update golang.org/x/sys.

Yes, I am fixing it.

@codecov-io
Copy link

Codecov Report

Merging #76 into master will decrease coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #76      +/-   ##
=========================================
- Coverage    6.08%   6.08%   -0.01%     
=========================================
  Files          31      31              
  Lines        3977    3980       +3     
=========================================
  Hits          242     242              
- Misses       3720    3723       +3     
  Partials       15      15
Impacted Files Coverage Δ
plugin/driver/ipvlan.go 1.01% <0%> (-0.02%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f391210...7376277. Read the comment docs.

@BSWANG
Copy link
Member

BSWANG commented Dec 9, 2019

LGTM, Thanks.

@BSWANG BSWANG merged commit eeb4eb5 into AliyunContainerService:master Dec 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants