0.0.15 • Published 7 months ago

cdk-eks-container-insight v0.0.15

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
7 months ago

CDK EKS Container Insight

This construct configures the necessary dependencies and installs Amazon CloudWatch Container Insight on an EKS cluster managed by AWS CDK.

Using

In your CDK project, initialize a new Container Insight construct for your EKS cluster, like this:

const cluster = new Cluster(this, 'testCluster', {
  vpc: vpc,
  role: clusterRole,
  version: KubernetesVersion.V1_24,
  kubectlLayer: new KubectlV24Layer(this, 'KubectlLayer'),
  defaultCapacity: 1
});

new ContainerInsight(this, 'ContainerInsight', {
  cluster: cluster,
});

This will install and configure Container Insight on EC2 managed nodes in your cluster.

Testing

This construct adds a custom task to projen, so you can test a full deployment of an EKS cluster with CloudWatch Container Insight installed as specified in test/integ.containerinsight.ts by running the following:

export CDK_DEFAULT_REGION=<aws region>
export CDK_DEFAULT_ACCOUNT=<account id>
npx projen test:deploy

And you can valid the construct installation by login in CloudWatch console to

npm.io

As the above will create a cluster. And the Container Insight will show your how cluster information in CloudWatch.

You can clean things up by deleting the deployment and the CDK test stack:

npx projen test:destroy

Security

See CONTRIBUTING for more information.

License

This project is licensed under the Apache-2.0 License.

0.0.10

10 months ago

0.0.11

10 months ago

0.0.12

10 months ago

0.0.13

10 months ago

0.0.14

7 months ago

0.0.15

7 months ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago

0.0.0

1 year ago