Package Exports
- cdkeks
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cdkeks) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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 cdkeksPython:
pip install cdkeksHowto use
Install Addons
const platform = new Platform(this, 'Platform', {
cluster,
addons: [new AwsCalicoAddon(), new AwsLoadBalancerControllerAddon()/*,...*/],
});See more addons.
AlbIngress
const deployment = new Deployment(this, 'Deployment', {
platform,
containers: [
{
image: 'nginx',
},
],
});
const backend = IngressBackend.fromService(deployment.expose('Service', 80));
const ingress = new AlbIngress(this, 'Ingress', {
platform,
targetType: TargetType.IP,
internetFacing: true,
});
ingress.connections.allowFromAnyIpv4(Port.tcp(80));
ingress.addRule('/', backend);LoadBalancer
const deployment = new Deployment(this, 'Deployment', {
platform,
containers: [
{
image: 'nginx',
},
],
});
deployment.expose('LoadBalancer', 80, {
serviceType: ServiceType.LOAD_BALANCER,
});API Reference
See API.md.
Example
See more complete examples.