Higher-level hybrid cdk|cdk8s construct to build an eks kubernetes platform with batteries included
Project description
cdkeks
Higher-level hybrid cdk|cdk8s construct to build an eks kubernetes platform with batteries included:
- Network policies with aws-calico
- DNS management with external-dns
- Forwarding logs to CloudWatch Logs or ElasticSearch with fluent-bit
- Ingress management with the aws load balancer controller
:warning: This is experimental and subject to breaking changes.
Install
TypeScript/JavaScript:
npm install --save cdkeks
Python:
pip install cdkeks
Howto use
Install Addons
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
platform = Platform(self, "Platform",
cluster=cluster,
addons=[AwsCalicoAddon(), AwsLoadBalancerControllerAddon()]
)
See more addons.
AlbIngress
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
deployment = Deployment(self, "Deployment",
platform=platform,
containers=[{
"image": "nginx"
}
]
)
backend = IngressBackend.from_service(deployment.expose("Service", 80))
ingress = AlbIngress(self, "Ingress",
platform=platform,
target_type=TargetType.IP,
internet_facing=True
)
ingress.connections.allow_from_any_ipv4(Port.tcp(80))
ingress.add_rule("/", backend)
LoadBalancer
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
deployment = Deployment(self, "Deployment",
platform=platform,
containers=[{
"image": "nginx"
}
]
)
deployment.expose("LoadBalancer", 80,
service_type=ServiceType.LOAD_BALANCER
)
API Reference
See API.md.
Example
See more complete examples.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cdkeks-0.0.4.tar.gz.
File metadata
- Download URL: cdkeks-0.0.4.tar.gz
- Upload date:
- Size: 427.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a27f75f5ae134290a0c2724a74fa96f0d533fc18f35f89e79148f20a72caa12
|
|
| MD5 |
0235c3a46a7a6b5a6b3a265623b2971d
|
|
| BLAKE2b-256 |
32c1edadffc614a57a994bbe456186b72f05b4d2a77ef850ce1d4d4c6fd928f6
|
File details
Details for the file cdkeks-0.0.4-py3-none-any.whl.
File metadata
- Download URL: cdkeks-0.0.4-py3-none-any.whl
- Upload date:
- Size: 424.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5cdc785b4bce38bda9def4abfc301cc5803098b80410269134c281c1048d41da
|
|
| MD5 |
4e10205bc7d2111e704a45da7b86ea2f
|
|
| BLAKE2b-256 |
3068f186bdb1c46d596239cb99761712f66f4249694e2ae16ea0b1d0401ade4f
|