Skip to main content

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

Project description

cdkeks

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

:warning: 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

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cdkeks-0.0.4.tar.gz (427.0 kB view details)

Uploaded Source

Built Distribution

cdkeks-0.0.4-py3-none-any.whl (424.8 kB view details)

Uploaded Python 3

File details

Details for the file cdkeks-0.0.4.tar.gz.

File metadata

  • Download URL: cdkeks-0.0.4.tar.gz
  • Upload date:
  • Size: 427.0 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for cdkeks-0.0.4.tar.gz
Algorithm Hash digest
SHA256 3a27f75f5ae134290a0c2724a74fa96f0d533fc18f35f89e79148f20a72caa12
MD5 0235c3a46a7a6b5a6b3a265623b2971d
BLAKE2b-256 32c1edadffc614a57a994bbe456186b72f05b4d2a77ef850ce1d4d4c6fd928f6

See more details on using hashes here.

File details

Details for the file cdkeks-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: cdkeks-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 424.8 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for cdkeks-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5cdc785b4bce38bda9def4abfc301cc5803098b80410269134c281c1048d41da
MD5 4e10205bc7d2111e704a45da7b86ea2f
BLAKE2b-256 3068f186bdb1c46d596239cb99761712f66f4249694e2ae16ea0b1d0401ade4f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page