JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q29905F
  • License MIT

Higher-level hybrid cdk|cdk8s construct to build an eks kubernetes platform with batteries included

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:

⚠️ This is experimental and subject to breaking changes.

Install

TypeScript/JavaScript:

npm install --save cdkeks

Python:

pip install cdkeks

Howto 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.

License

MIT