Skip to content

Commit 7af3d9f

Browse files
authored
Merge pull request #182 from aws-samples/task/upgrade-to-1.16
upgraded to 1.16.3 Added an ASG with Spot and termination handler
2 parents f91031c + 5442d45 commit 7af3d9f

File tree

4 files changed

+37
-9
lines changed

4 files changed

+37
-9
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
build:
11-
runs-on: macos-12
11+
runs-on: macos-14
1212

1313
strategy:
1414
matrix:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ bootstrap:
5656

5757
check-lib:
5858
ifeq ($(shell brew ls --versions $(LIB)),)
59-
@echo Installing $(LIB) via Hombrew
59+
@echo Installing $(LIB) via Homebrew
6060
@brew install $(LIB)
6161
else
6262
@echo $(LIB) is already installed, skipping.

bin/asg.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import 'source-map-support/register';
2+
import * as cdk from 'aws-cdk-lib';
3+
import * as blueprints from '@aws-quickstart/eks-blueprints';
4+
5+
import { configureApp } from "../lib/common/construct-utils";
6+
7+
const app = configureApp();
8+
9+
const spotInterruptHandlerAddOn = new blueprints.addons.AwsNodeTerminationHandlerAddOn({
10+
version: "0.25.1",
11+
repository: 'oci://public.ecr.aws/aws-ec2/helm/aws-node-termination-handler'
12+
});
13+
14+
const clusterProvider = new blueprints.AsgClusterProvider({
15+
version: cdk.aws_eks.KubernetesVersion.V1_30,
16+
minSize: 1, maxSize: 1, spotPrice: "0.10",
17+
machineImageType: cdk.aws_eks.MachineImageType.BOTTLEROCKET,
18+
id: "asg-spot",
19+
name: "asg-spot",
20+
spotInterruptHandler: false
21+
});
22+
23+
const blueprint = blueprints.EksBlueprint.builder()
24+
.region("us-west-2")
25+
.version("auto")
26+
.clusterProvider(clusterProvider)
27+
.addOns(spotInterruptHandlerAddOn)
28+
.build(app, 'asg-test');

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424
"typescript": "^5.3.3"
2525
},
2626
"dependencies": {
27-
"@aws-quickstart/eks-blueprints": "1.16.1",
27+
"@aws-quickstart/eks-blueprints": "1.16.3",
2828
"@aws-sdk/client-config-service": "^3.576.0",
2929
"@aws-sdk/client-eks": "^3.478.0",
3030
"@claranet-ch/konveyor-eks-blueprint-addon": "^1.0.2",
3131
"@datadog/datadog-eks-blueprints-addon": "^0.1.2",
32-
"@dynatrace/dynatrace-eks-blueprints-addon": "^1.3.1-1 ",
32+
"@dynatrace/dynatrace-eks-blueprints-addon": "^1.4.0-1",
3333
"@granulate/gmaestro-eks-blueprints-addon": "^1.0.16",
3434
"@instana/aws-eks-blueprint-addon": "^1.0.4",
3535
"@kastenhq/kasten-eks-blueprints-addon": "^1.0.1",
@@ -40,16 +40,16 @@
4040
"@paralus/paralus-eks-blueprints-addon": "^0.1.5",
4141
"@rafaysystems/rafay-eks-blueprints-addon": "^0.0.2",
4242
"@snyk-partners/snyk-monitor-eks-blueprints-addon": "^1.1.1",
43-
"aws-cdk": "2.162.1",
44-
"aws-cdk-lib": "2.162.1",
43+
"aws-cdk": "2.173.4",
44+
"aws-cdk-lib": "2.173.4",
4545
"eks-blueprints-cdk-kubeflow-ext": "0.1.9",
4646
"kubeshark": "^0.0.9",
4747
"source-map-support": "^0.5.21"
4848
},
4949
"overrides": {
50-
"@aws-quickstart/eks-blueprints": "1.16.1",
51-
"aws-cdk": "2.162.1",
52-
"aws-cdk-lib": "2.162.1",
50+
"@aws-quickstart/eks-blueprints": "1.16.3",
51+
"aws-cdk": "2.173.4",
52+
"aws-cdk-lib": "2.173.4",
5353
"xml2js": "0.5.0",
5454
"@aws-cdk/core": "../_EXCLUDED_",
5555
"axios": "^1.6.2"

0 commit comments

Comments
 (0)