Skip to main content

CDK construct library that allows you enable an AWS EKS cluster for CloudWatch Container Insight

Project description

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,
  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 Karpenter installed as specified in test/integ.karpenter.ts by running the following:

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

As the above will create a cluster.

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cdk-eks-container-insight-0.0.1.tar.gz (149.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cdk_eks_container_insight-0.0.1-py3-none-any.whl (148.2 kB view details)

Uploaded Python 3

File details

Details for the file cdk-eks-container-insight-0.0.1.tar.gz.

File metadata

File hashes

Hashes for cdk-eks-container-insight-0.0.1.tar.gz
Algorithm Hash digest
SHA256 fa4b037c2bb7d7224e3cf221e9a236dfedf7cb19f7cb4c64ad0f535445f52a92
MD5 0e1542fc2364f38e3f42e3536e58f1d7
BLAKE2b-256 17f1329d3e8fcaf83b1b7985b8b81b2ff844b5628de04a951f6675159ce49aa0

See more details on using hashes here.

File details

Details for the file cdk_eks_container_insight-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for cdk_eks_container_insight-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c58cee7b7adf7bffc42611c150b7caf2d27e445d79117b569b170c7cb64762f7
MD5 b1087e4b7119e2449f0d67a3d2708b1e
BLAKE2b-256 946ba6e8d136e97c8afe395f834c32b31a22297cb064d089857eb9028d83d40c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page