Skip to content

Conversation

@jiechen0826
Copy link
Contributor

Issue #, if available:

Description of changes:

  • This PR adds support for Windows prefix delegation to increase pod density per node. Instead of assigning secondary IPv4 address, this feature assigns IPv4 prefix to primary ENI on Windows node.
  • Can enable the feature by adding an entry enable-windows-prefix-delegation: true in amazon-vpc-cni config map after enabling IPAM.
  • Can set either warm-ip-target and/or minimum-ip-target, or warm-prefix-target in amazon-vpc-cni config map to fine-tune the warm pool configuration used in prefix delegation.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

jiechen0826 and others added 20 commits June 6, 2023 16:58
* Updated IP provider to support resource group

* fixed importing constants from a different package
…econstructed IPs (aws#212)

* added new resource type and IP allocation workflow for prefix IPs

* added API to return resource provider by resource name and unit tests
…xes from EC2 (aws#219)

* modified eni manager to allocate and deallocate IPv4 prefixes from EC2

* added unit tests and updated mocks for eni manager and ec2 helper

* refactored ip resource count and return values
aws#220)

* updated warm pool to support resource group for secondary ip and prefix-ip

* added default config for prefix-ip warm pool

* fixed deleting group from warm resource and updated existing pool tests

* refactored helper functions and added unit tests for warmpool

* refactored helper functions and added unit tests for warmpool

* added APIs to set pool status to active or draining
…ng workflow build (aws#222)

* updated secondary ip provider unit tests

* fixed ip provider and unit tests with updated eni API

* commented out prefix provider to get existing workflow built

* minor fix to make it build
* added support for loading PD configuration from config map

* added prefix provider to manage ipv4 prefixes as a new resource

* updated pool to set PD configs to default if not valid

* added logger to log failures when parsing PD configs
…s#240)

added a check for nitro status when toggling from PD to secondary IP and refactored common code for nitro check
@jiechen0826 jiechen0826 requested a review from a team as a code owner June 7, 2023 00:25
Copy link
Contributor

@sushrk sushrk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, all the commits have been previously approved in windows-prefix-delegation branch.
Adding a comment to give others a chance to review before approving. Thanks @jiechen0826 !

@haouc
Copy link
Contributor

haouc commented Jun 7, 2023

lgtm.

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