-
Notifications
You must be signed in to change notification settings - Fork 374
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve multi-protocol support for NPL
There is an edge case, which is not handled well by the current NPL controller implementation: if a given Pod port needs to be exposed for both TCP and UDP, and the first available Node port is only available for TCP, it will be still be selected and NPL rule installation will succeed for TCP but not for UDP. We have 2 options: 1. reserve the port for both protocols ahead of time, even if the port is only needed for one protocol initially. 2. support using different Node ports for different protocols, even when the Pod port is the same. In this patch, we go with option 1) to preserve the "nice" property that a give Pod port maps to a unique Node port. Fixes #2894 Signed-off-by: Antonin Bas <[email protected]>
- Loading branch information
1 parent
373c25e
commit d490051
Showing
5 changed files
with
246 additions
and
114 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
Oops, something went wrong.