-
Notifications
You must be signed in to change notification settings - Fork 471
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
Configure the level of IPAM with UDNs #1708
base: master
Are you sure you want to change the base?
Conversation
Skipping CI for Draft Pull Request. |
595d0c8
to
aa47656
Compare
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 have some wording suggestions to make it clearer.
I think it is a nice suggestion, that opens the door for a more granular IPAM configuration, according to the use-cases sought by the user.
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.
Tks.
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: maiqueb The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@@ -464,6 +465,7 @@ Suggested API validation rules: | |||
- `Subnets` are mandatory for `Layer3` topology. | |||
- `Localnet` topology is not supported for primary network. | |||
- `IPAMLifecycle` is supported for `Layer2` and `Localnet` topology. | |||
- When `IPAMLevel` is `Disabled`, `Subnets` cannot be set. When it is `FullyManaged`, `Subnets` are required. |
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 assume for layer3 there can never be a disabled mode right? for both role primary and role secondary?
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 so too - L3 has to do routing between nodes, and it could not do routing without subnet awareness.
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.
Tell me if you would prefer me to reword this line. I think that the condition is already present in the list, but it is not obvious (subnets and ipamlevel points need to be merged).
The current proposal for UDN's IPAM configuration is limited and would not allow a simple expansion covering other use-cases. This patch aims to make it more future-proof. There are two limitations that this should solve: 1) The current proposal does not leave space for default subnets value 2) The current proposal does not leave space for granular control of IPAM This patch should solve both by introducing a new attribute called `IPAMLevel`. This attribute dictates how much of the network IP configuration will be done by OVN and how much is left to the user. The initial implementation of 4.18 will need only two values: `Disabled` and `FullyManaged`. Later releases should introduce a new level, when OVN will manage configuration of logical routers (routing, NAT, default GW), but configuration of individual Pod's / VM's IPs will be left to the user. Apart from introducing this new field, this patch also changes the behavior of nil subnets. While with the current enhancement not setting subnets means disabling IPAM, with this patch, not setting subnets is not allowed unless `Disabled` `IPAMLevel` is explicitly set. This will allow us to introduce default subnet value in the future, if we decide to go that path. Signed-off-by: Petr Horacek <[email protected]>
@phoracek: all tests passed! Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
I think if we already have some future options like partially-managed in mind, it would be nice to include those options into this enhancement, to make sure our current API will be properly extended when needed. we don't need to implement all of the options at the same time though. Trying to figure out important parts of the subnet management process
@phoracek does that ^ sound right? |
The current proposal for UDN's IPAM configuration is limiting as it would not allow a (simple) expansion covering other anticipated use-cases. This patch aims to make it more future-proof.
There are two limitations that this patch should solve:
Subnets
valueThis patch should solve both by introducing a new attribute called
IPAMLevel
. This attribute dictates how much of the network IP configuration will be done by OVN and how much is left to the user.The initial implementation of 4.18 will need only two values:
Disabled
andFullyManaged
. Later releases should introduce a new level, where OVN will manage configuration of logical routers (routing, NAT, default GW), but configuration of individual Pod's / VM's IPs will be left to the user.Apart from introducing this new field, this patch also changes the behavior of
nil
Subnets
. While with the current enhancement not setting subnets means disabling IPAM, with this patch, not setting subnets is not allowed unlessDisabled
IPAMLevel
is explicitly set. This will allow us to introduce default subnet value in the future, if we decide to go that path.