constructor()

in lib/eks-cluster.ts [9:24]


  constructor(scope: cdk.Construct, id: string, props?: cdk.StackProps) {
    super(scope, id, props);

    const cluster = new eks.Cluster(this, 'CDKJenkins', {
      version: eks.KubernetesVersion.V1_18,
    });

    cluster.addNodegroupCapacity('eks-node-group-jenkins', {
      instanceType: new ec2.InstanceType('t3.large'),
      minSize: 2,
      diskSize: 100,
      amiType: eks.NodegroupAmiType.AL2_X86_64,
    });

    this.cluster = cluster;
  }