Skip to content

Commit

Permalink
upgraded to 1.16.3 and latest CDK. Added an ASG with Spot and termina…
Browse files Browse the repository at this point in the history
…tion handler
  • Loading branch information
shapirov103 committed Jan 23, 2025
1 parent 57927c5 commit c059808
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 7 deletions.
28 changes: 28 additions & 0 deletions bin/asg.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import 'source-map-support/register';
import * as cdk from 'aws-cdk-lib';
import * as blueprints from '@aws-quickstart/eks-blueprints';

import { configureApp } from "../lib/common/construct-utils";

const app = configureApp();

const spotInterruptHandlerAddOn = new blueprints.addons.AwsNodeTerminationHandlerAddOn({
version: "0.25.1",
repository: 'oci://public.ecr.aws/aws-ec2/helm/aws-node-termination-handler'
});

const clusterProvider = new blueprints.AsgClusterProvider({
version: cdk.aws_eks.KubernetesVersion.V1_30,
minSize: 1, maxSize: 1, spotPrice: "0.10",
machineImageType: cdk.aws_eks.MachineImageType.BOTTLEROCKET,
id: "asg-spot",
name: "asg-spot",
spotInterruptHandler: false
});

const blueprint = blueprints.EksBlueprint.builder()
.region("us-west-2")
.version("auto")
.clusterProvider(clusterProvider)
.addOns(spotInterruptHandlerAddOn)
.build(app, 'asg-test');
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@
"typescript": "^5.3.3"
},
"dependencies": {
"@aws-quickstart/eks-blueprints": "1.16.1",
"@aws-quickstart/eks-blueprints": "1.16.3",
"@aws-sdk/client-config-service": "^3.576.0",
"@aws-sdk/client-eks": "^3.478.0",
"@claranet-ch/konveyor-eks-blueprint-addon": "^1.0.2",
"@datadog/datadog-eks-blueprints-addon": "^0.1.2",
"@dynatrace/dynatrace-eks-blueprints-addon": "^1.3.1-1 ",
"@dynatrace/dynatrace-eks-blueprints-addon": "^1.4.0-1",
"@granulate/gmaestro-eks-blueprints-addon": "^1.0.16",
"@instana/aws-eks-blueprint-addon": "^1.0.4",
"@kastenhq/kasten-eks-blueprints-addon": "^1.0.1",
Expand All @@ -40,16 +40,16 @@
"@paralus/paralus-eks-blueprints-addon": "^0.1.5",
"@rafaysystems/rafay-eks-blueprints-addon": "^0.0.2",
"@snyk-partners/snyk-monitor-eks-blueprints-addon": "^1.1.1",
"aws-cdk": "2.162.1",
"aws-cdk-lib": "2.162.1",
"aws-cdk": "2.173.4",
"aws-cdk-lib": "2.173.4",
"eks-blueprints-cdk-kubeflow-ext": "0.1.9",
"kubeshark": "^0.0.9",
"source-map-support": "^0.5.21"
},
"overrides": {
"@aws-quickstart/eks-blueprints": "1.16.1",
"aws-cdk": "2.162.1",
"aws-cdk-lib": "2.162.1",
"@aws-quickstart/eks-blueprints": "1.16.3",
"aws-cdk": "2.173.4",
"aws-cdk-lib": "2.173.4",
"xml2js": "0.5.0",
"@aws-cdk/core": "../_EXCLUDED_",
"axios": "^1.6.2"
Expand Down

0 comments on commit c059808

Please sign in to comment.