sparse-intern-71089
04/12/2023, 2:55 PMbillowy-army-68599
nodeAssociatePublicIpAddress: false,
This is for the default node group, and you’re create another managed node groupbillowy-army-68599
stocky-petabyte-29883
04/12/2023, 2:59 PMstocky-petabyte-29883
04/12/2023, 3:00 PMbillowy-army-68599
billowy-army-68599
skipDefaultNodeGroup: true
stocky-petabyte-29883
04/12/2023, 3:01 PMbillowy-army-68599
billowy-army-68599
stocky-petabyte-29883
04/12/2023, 3:08 PMexport const vpc = new awsx.ec2.Vpc(`${stack}-eks-vpc`, {
numberOfAvailabilityZones: eksConfig.vpc.length,
cidrBlock: eksConfig.cidrRange,
numberOfNatGateways: eksConfig.vpc.length,
subnets: eksConfig.vpc.map((instance, index) => {
return <awsx.ec2.VpcSubnetArgs[]>[{
type: "private",
name: `${stack}-private-eks-subnet-${index}`,
location: {
availabilityZone: instance.zoneName,
cidrBlock: instance.privateCidr,
},
tags: {
Environment: stack,
"<http://kubernetes.io/role/internal-elb|kubernetes.io/role/internal-elb>": "1"
}
},
{
type: "public",
name: `${stack}-public-eks-subnet-${index}`,
location: {
availabilityZone: instance.zoneName,
cidrBlock: instance.publicCidr,
},
tags: {
Environment: stack,
"<http://kubernetes.io/role/elb|kubernetes.io/role/elb>": "1"
}
}]
}).flatMap(s => s),
});
billowy-army-68599
stocky-petabyte-29883
04/12/2023, 3:16 PMbillowy-army-68599
stocky-petabyte-29883
04/12/2023, 3:23 PMstocky-petabyte-29883
04/12/2023, 3:30 PMbillowy-army-68599
stocky-petabyte-29883
04/12/2023, 3:57 PMstocky-petabyte-29883
04/12/2023, 4:09 PMbillowy-army-68599
stocky-petabyte-29883
04/12/2023, 4:52 PMstocky-petabyte-29883
04/12/2023, 7:27 PMbillowy-army-68599
stocky-petabyte-29883
04/12/2023, 8:08 PMstocky-petabyte-29883
04/12/2023, 8:14 PM/**
* Make subnetIds optional, since the cluster is required and it contains it.
*
* Default subnetIds is chosen from the following list, in order, if
* subnetIds arg is not set:
* - core.subnetIds
* - core.privateIds
* - core.publicSublicSubnetIds
*
* This default logic is based on the existing subnet IDs logic of this
* package: <https://git.io/JeM11>
*/
subnetIds?: pulumi.Input<pulumi.Input<string>[]>;
I haven't set core.subnetIds explicitly, I guess since subnetIds have all the values, it uses all subnets for the managed node groupbillowy-army-68599
stocky-petabyte-29883
04/12/2023, 8:17 PM