feat(eks): enhancements and fixes for EKS#766
feat(eks): enhancements and fixes for EKS#766zdrapela wants to merge 3 commits intoredhat-developer:mainfrom
Conversation
1900154 to
1b896ed
Compare
|
@adrianriobo Hi, I tested this PR on creating an EKS cluster, but I haven't tested any other infra creation, which may be affected. |
281435c to
b3e1da7
Compare
|
hey nice contribution, yeah I think most of the changes should not affect other targets but I want to give a try, in any case can you clean a bit the commits? basically you can either group EKS improvements and Networking improvements? WDYT? |
b3e1da7 to
f24206c
Compare
…ging - Replace managed node group with self-managed ASG for spot price control - Add tekton task for EKS cluster management - Add resource tags to all EKS-specific AWS resources - Resolve EKS cluster creation failures - Fix EKS creation without AWS CLI - Extend EKS documentation
f24206c to
dca05de
Compare
|
Sure, I split it 👍 |
|
@anjannath would you find time to review this one? |
| PublicSubnetsCIDRs: network.GeneratePublicSubnetCIDRs(len(r.availabilityZones)), | ||
| Region: *r.allocationData.Region, | ||
| NatGatewayMode: &network.NatGatewayModeSingle, | ||
| NatGatewayMode: &network.NatGatewayModeNone, |
There was a problem hiding this comment.
this seems like can be put into its separate commit, it is changed to NatGatewayModeNone because MapPublicIp is true and that means a NAT gateway is not needed, we can include that information in the commit log
| func createSelfManagedNodeGroup(ctx *pulumi.Context, args *selfManagedNodeGroupArgs) (*autoscaling.Group, error) { | ||
| // Look up EKS-optimized AL2023 AMI | ||
| eksAMI, err := ami.GetAMIByName(ctx, | ||
| fmt.Sprintf("amazon-eks-node-al2023-x86_64-standard-%s-*", args.kubernetesVersion), |
There was a problem hiding this comment.
the eks command also supports the --arch flag, here we need to set the arch substring in the AMI name, now it is static to x86_64
Summary
Self-managed node groups with spot support
spotPriceparameter to set maximum bid for spot instancesCluster reliability fixes
NodeConfig(required by AL2023 for proper pod networking withoutDescribeClusterAPI calls)WaitForCapacityTimeout,HealthCheckType, andHealthCheckGracePeriodto ASG so Pulumi waits for nodes to be InService before deploying addonsResolveConflictsOnCreateand extended timeouts to all EKS addonsNatGatewayModeNone) since EKS uses only public subnetsVPC endpoint extraction
EndpointsRequestmoduleServiceEndpointspattern from feat(aws): Optional service endpoints #754Other
Resolves #499