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
⚠️ 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
Metadata
Release files for cdkeks 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cdkeks-0.0.4.tar.gz | 427.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cdkeks-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 851.8 kB
Release files / cdkeks-0.0.4.tar.gz
| Download URL | cdkeks-0.0.4.tar.gz |
|---|---|
| Size | 427.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3a27f75f5ae134290a0c2724a74fa96f0d533fc18f35f89e79148f20a72caa12
|
|
BLAKE2b-256 checksum How to use checksums |
32c1edadffc614a57a994bbe456186b72f05b4d2a77ef850ce1d4d4c6fd928f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / cdkeks-0.0.4-py3-none-any.whl
| Download URL | cdkeks-0.0.4-py3-none-any.whl |
|---|---|
| Size | 424.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5cdc785b4bce38bda9def4abfc301cc5803098b80410269134c281c1048d41da
|
|
BLAKE2b-256 checksum How to use checksums |
3068f186bdb1c46d596239cb99761712f66f4249694e2ae16ea0b1d0401ade4f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|