Skip to main content

Cloud Development Kit for Kubernetes

Project description

cdk8s

Cloud Development Kit for Kubernetes

cdk8s is a software development framework for defining Kubernetes applications using rich object-oriented APIs. It allows developers to leverage the full power of software in order to define abstract components called "constructs" which compose Kubernetes resources or other constructs into higher-level abstractions.

This library is the foundation of cdk8s. It includes base types that are used to define cdk8s applications.

Chart

The Chart is a container that synthesizes a single Kubernetes manifest.

# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
class MyChart(Chart):
    def __init__(self, scope, ns):
        super().__init__(scope, ns)

During synthesis, charts collect all the ApiObject nodes (recursively) and emit a single YAML manifest that includes all these objects.

ApiObject

An ApiObject is a construct that represents an entry in a Kubernetes manifest. In most cases, you won't use ApiObject directly but rather use classes that are generated by the cdk8s CLI and extend this base class.

Testing

cdk8s bundles a set of test utilities under the Testing class:

  • Testing.app() returns an App object bound to a temporary output directory.
  • Testing.synth(chart) returns the Kubernetes manifest synthesized from a chart.

License

This project is distributed under the Apache License, Version 2.0.

This module is part of the cdk8s project.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

cdk8s-0.18.0.tar.gz (155.7 kB view details)

Uploaded Source

Built Distribution

cdk8s-0.18.0-py3-none-any.whl (154.4 kB view details)

Uploaded Python 3

File details

Details for the file cdk8s-0.18.0.tar.gz.

File metadata

  • Download URL: cdk8s-0.18.0.tar.gz
  • Upload date:
  • Size: 155.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6

File hashes

Hashes for cdk8s-0.18.0.tar.gz
Algorithm Hash digest
SHA256 fb69589378be6564c832b92b1b2b7b397b606cc363f02bdcf61da0b0b281aa36
MD5 45201722975953b3addcaedde453c88d
BLAKE2b-256 f25a38304b7df46ba77b8f7aa3ac014c6317eae25c521a9c0b8a031bfdcd4fd4

See more details on using hashes here.

File details

Details for the file cdk8s-0.18.0-py3-none-any.whl.

File metadata

  • Download URL: cdk8s-0.18.0-py3-none-any.whl
  • Upload date:
  • Size: 154.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6

File hashes

Hashes for cdk8s-0.18.0-py3-none-any.whl
Algorithm Hash digest
SHA256 44e281c237f0667c19d7699d1b7e6c23de0e26429f5ea0235c74d81985b99962
MD5 c343c5d29eaed8ab24e4a203f0896e01
BLAKE2b-256 1b5b6a663923e0caa0f36e508c7e6bed2e16e207aa54485fd2204fd5168b696c

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