Skip to content

Commit aeca065

Browse files
committed
Update k8s to 1.31 and switch instance type to m7g
1 parent f72d86e commit aeca065

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/dataPlane.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ const MngProps: blueprints.MngClusterProviderProps = {
142142
minSize: 2,
143143
maxSize: 2,
144144
desiredSize: 2,
145-
version: eks.KubernetesVersion.V1_29,
146-
instanceTypes: [new ec2.InstanceType('m5.large')],
147-
amiType: eks.NodegroupAmiType.AL2_X86_64,
145+
version: eks.KubernetesVersion.V1_31,
146+
instanceTypes: [new ec2.InstanceType('m7g.large')],
147+
amiType: eks.NodegroupAmiType.AL2023_ARM_64_STANDARD,
148148
enableSsmPermissions: true,
149149
nodeGroupTags: {
150150
"Name": cdk.Aws.STACK_NAME + "-ClusterComponents",
@@ -154,7 +154,7 @@ const MngProps: blueprints.MngClusterProviderProps = {
154154

155155
// Deploy EKS cluster with all add-ons
156156
const blueprint = blueprints.EksBlueprint.builder()
157-
.version(eks.KubernetesVersion.V1_29)
157+
.version(eks.KubernetesVersion.V1_31)
158158
.addOns(...addOns)
159159
.resourceProvider(
160160
blueprints.GlobalResources.Vpc,
@@ -167,7 +167,7 @@ const blueprint = blueprints.EksBlueprint.builder()
167167
.resourceProvider("s3GWEndpoint", new s3GWEndpointProvider("s3GWEndpoint"))
168168
.clusterProvider(new blueprints.MngClusterProvider(MngProps))
169169
.build(scope, id + 'Stack', props);
170-
170+
/*
171171
// Workaround for permission denied when creating cluster
172172
const handler = blueprint.node.tryFindChild('@aws-cdk--aws-eks.KubectlProvider')!
173173
.node.tryFindChild('Handler')! as cdk.aws_lambda.Function
@@ -184,7 +184,7 @@ const blueprint = blueprints.EksBlueprint.builder()
184184
actions: ["lambda:GetFunctionConfiguration"],
185185
resources: [handler.functionArn]
186186
}))
187-
187+
*/
188188
// Provide static output name for cluster
189189
const cluster = blueprint.getClusterInfo().cluster
190190
const clusterNameCfnOutput = cluster.node.findChild('ClusterName') as cdk.CfnOutput;

0 commit comments

Comments
 (0)