in lib/custom-cluster-construct/index.ts [13:41]
constructor(scope: cdk.Construct, id: string) {
super(scope, id);
// Setup platform team
const accountID = process.env.CDK_DEFAULT_ACCOUNT!
const platformTeam = new team.TeamPlatform(accountID)
const teams: Array<ssp.Team> = [platformTeam];
// AddOns for the cluster.
const addOns: Array<ssp.ClusterAddOn> = [
new AwsLoadBalancerControllerAddOn,
new ssp.NginxAddOn,
new ssp.ArgoCDAddOn,
new ssp.CalicoAddOn,
new ssp.MetricsServerAddOn,
new ssp.ContainerInsightsAddOn,
];
const clusterProps: ssp.MngClusterProviderProps = {
version: eks.KubernetesVersion.V1_20,
instanceTypes: [new ec2.InstanceType('t3.large')],
amiType: eks.NodegroupAmiType.AL2_X86_64
}
const stackID = `${id}-blueprint`
const clusterProvider = new ssp.MngClusterProvider(clusterProps);
new ssp.EksBlueprint(scope, { id: stackID, teams, addOns, clusterProvider });
}