forked from antrea-io/antrea
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use target port of Service in NodePortLocal to configure Pod reachabi…
…lity Currently we use container ports of a Pod to program iptables rules to make the Pod reachable through a port in the Node. But container ports are not mandatory and multiple services can use different target ports for the same pod. Hence adding a change in NodePortLocal implementation, where target ports of all services would be used to program iptables rules and annotate pods. To implement this, target ports are being obtained from all the Services selecting a Pod, in the function handleAddUpdatePod(). Necessary changes in the tests have been added. Fixes antrea-io#1912 Signed-off-by: Monotosh Das <[email protected]>
- Loading branch information
1 parent
ef15423
commit 2b07d74
Showing
4 changed files
with
138 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.