Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.
/ cdkeks Public archive

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

License

Notifications You must be signed in to change notification settings

hupe1980/cdkeks

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published