-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #180 from aws-samples/task/upgrade-to-1.16
Added ipv6-blueprint pattern and upgraded to 1.16.1, fixed libs
- Loading branch information
Showing
3 changed files
with
44 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { configureApp } from "../lib/common/construct-utils"; | ||
import IpV6Construct from "../lib/ipv6-construct"; | ||
|
||
const app = configureApp(); | ||
|
||
new IpV6Construct().build(app, "ipv6"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import * as cdk from 'aws-cdk-lib'; | ||
import * as blueprints from '@aws-quickstart/eks-blueprints'; | ||
import { Construct } from "constructs"; | ||
import { IpFamily } from 'aws-cdk-lib/aws-eks'; | ||
|
||
export default class IpV6Construct { | ||
build(scope: Construct, id: string) { | ||
const account = process.env.CDK_DEFAULT_ACCOUNT!; | ||
const region = process.env.CDK_DEFAULT_REGION!; | ||
const stackID = `${id}-blueprint`; | ||
|
||
const ipFamily = IpFamily.IP_V6; //IpFamily.IP_V6 is equivalent to "ipv6" | ||
// AddOns for the cluster. For ipv6 cluster, we haven't tested with all the addons except for the below addons. | ||
const addOns: Array<blueprints.ClusterAddOn> = [ | ||
new blueprints.addons.VpcCniAddOn(), | ||
new blueprints.addons.KarpenterAddOn(), | ||
new blueprints.addons.SecretsStoreAddOn() | ||
]; | ||
blueprints.EksBlueprint.builder() | ||
.account(account) | ||
.region(region) | ||
.version('auto') | ||
.ipFamily(ipFamily) | ||
.addOns(...addOns) | ||
.build(scope, stackID); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters