Commit 48ace56
feat(eks-v2-alpha): add support for EKS hybrid nodes (#36749)
### Issue # (if applicable)
### Reason for this change
This change allows users to specify the networking primitives for an EKS
Hybrid nodes cluster through L2 constructs.
### Description of changes
This PR introduces two new top-level fields called remoteNodeNetworks
and remotePodNetworks in the Cluster construct. Together, these allow
users to specify the exact CIDRs ranges they want to use for their
on-premises nodes and (optionally) pods. The Hybrid nodes feature
requires that none of the node and pod CIDRs overlap with each other so
I have also added validations for that.
Network utils from EC2 had to be exported so they can be used in
eks-v2-alpha, which is in a different package
(@aws-cdk/aws-eks-v2-alpha). It cannot be used directly without an
export like in eks v1 which is in aws-cdk-lib. Because of that, they are
marked as internal.
Similar to #32389
This aligns EKS v2 with v1. I also confirmed it works with EKS auto
mode.
### Describe any new or updated permissions being added
None
### Description of how you validated changes
Integ test deployed
### Checklist
- [X] My code adheres to the [CONTRIBUTING
GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and
[DESIGN
GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)
----
*By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache-2.0 license*
---------
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>1 parent cb1658f commit 48ace56
File tree
17 files changed
+2542
-93
lines changed- packages
- @aws-cdk/aws-eks-v2-alpha
- lib
- test
- integ.eks-hybrid-nodes.js.snapshot
- aws-cdk-lib
- aws-ec2
- lib
- test
- aws-eks
- lib
- test
17 files changed
+2542
-93
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
711 | 711 | | |
712 | 712 | | |
713 | 713 | | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
714 | 739 | | |
715 | 740 | | |
716 | 741 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
433 | 434 | | |
434 | 435 | | |
435 | 436 | | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
436 | 450 | | |
437 | 451 | | |
438 | 452 | | |
| |||
527 | 541 | | |
528 | 542 | | |
529 | 543 | | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
530 | 564 | | |
531 | 565 | | |
532 | 566 | | |
| |||
1150 | 1184 | | |
1151 | 1185 | | |
1152 | 1186 | | |
| 1187 | + | |
| 1188 | + | |
1153 | 1189 | | |
1154 | 1190 | | |
1155 | 1191 | | |
| |||
1261 | 1297 | | |
1262 | 1298 | | |
1263 | 1299 | | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
1264 | 1308 | | |
1265 | 1309 | | |
1266 | 1310 | | |
| |||
1679 | 1723 | | |
1680 | 1724 | | |
1681 | 1725 | | |
| 1726 | + | |
| 1727 | + | |
| 1728 | + | |
| 1729 | + | |
| 1730 | + | |
| 1731 | + | |
| 1732 | + | |
| 1733 | + | |
| 1734 | + | |
| 1735 | + | |
| 1736 | + | |
| 1737 | + | |
| 1738 | + | |
| 1739 | + | |
| 1740 | + | |
| 1741 | + | |
| 1742 | + | |
| 1743 | + | |
| 1744 | + | |
| 1745 | + | |
| 1746 | + | |
| 1747 | + | |
| 1748 | + | |
| 1749 | + | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
| 1756 | + | |
| 1757 | + | |
| 1758 | + | |
| 1759 | + | |
| 1760 | + | |
| 1761 | + | |
| 1762 | + | |
| 1763 | + | |
| 1764 | + | |
| 1765 | + | |
| 1766 | + | |
| 1767 | + | |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
| 1780 | + | |
| 1781 | + | |
| 1782 | + | |
| 1783 | + | |
| 1784 | + | |
| 1785 | + | |
| 1786 | + | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
| 1790 | + | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
| 1795 | + | |
| 1796 | + | |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
| 1800 | + | |
1682 | 1801 | | |
1683 | 1802 | | |
1684 | 1803 | | |
| |||
0 commit comments