-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
e2e: Avoid setting wrong routes for
host-local
IPAM
The IPAM configuration: ``` { "type":"host-local", "subnet":"10.10.10.0{"type":"host-local", "subnet":"10.10.10.0/24", "rangeStart":"10.10.10.171", "rangeEnd":"10.10.10.181", "routes":[{"dst":"0.0.0.0/0"}], "gateway":"10.10.10.1" } ``` Can lead to the following pod `ip route` configuration: ``` default via 10.10.10.1 dev net1 default via 10.128.0.1 dev eth0 10.10.10.0/24 dev net1 proto kernel scope link src 10.10.10.172 10.128.0.0/23 dev eth0 proto kernel scope link src 10.128.0.135 10.128.0.0/14 via 10.128.0.1 dev eth0 ``` which causes connectivity issues. Avoid setting default routes to unknown gateways. Signed-off-by: Andrea Panattoni <[email protected]>
- Loading branch information
Showing
3 changed files
with
15 additions
and
27 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