cdkeks
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.6 • Public • Published

    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

    Install

    npm i cdkeks

    DownloadsWeekly Downloads

    9

    Version

    0.0.6

    License

    MIT

    Unpacked Size

    2.69 MB

    Total Files

    62

    Last publish

    Collaborators

    • hupe1980