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,
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
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file cdk-eks-container-insight-0.0.15.tar.gz
.
File metadata
- Download URL: cdk-eks-container-insight-0.0.15.tar.gz
- Upload date:
- Size: 468.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85b0428feef4f42d1061c277479c2f5326d024c2703cf9245c010b07a161f543 |
|
MD5 | 7e51a92c2b29f0c5df0e95a7243b05fe |
|
BLAKE2b-256 | d40d80e4b838978a4f5d530ff363aefa632431a68eb7c62567070af7521e6d43 |
File details
Details for the file cdk_eks_container_insight-0.0.15-py3-none-any.whl
.
File metadata
- Download URL: cdk_eks_container_insight-0.0.15-py3-none-any.whl
- Upload date:
- Size: 467.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ca8431becf4a1454e560ad81177c2d82264ed85f57bf32a79ef0e0f8d3d5d2e |
|
MD5 | 369da455e0033b67fcf873057c5d4448 |
|
BLAKE2b-256 | c1b42b63bfa4abea67ee15820707b5a29545e5c08f497872ddfaf4e66f8d2775 |