A compatability layer for using cdk8s constructs within Terraform CDK.
Project description
CDKTF CDK8s
A compatability layer for using cdk8s constructs within Terraform CDK.
Usage
import { App, TerraformStack } from "cdktf";
import { App as CDK8sApp, Chart } from "cdk8s";
import { CDK8sProvider } from "cdktf-cdk8s";
import { MyCdk8sChart } from "./my-cdk8s-chart";
export class MyKubernetesStack extends TerraformStack {
constructor(scope: Construct, name: string) {
super(scope, name);
const cdk8sApp = new CDK8sApp();
// Configure your cdk8s application like usual
new HelloKube(cdk8sApp, "my-chart");
// For properties see https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs
// Extends on the Provider class from @cdktf/provider-kubernetes
new CDK8sProvider(this, "cdk8s-dev", {
configPath: "./kubeconfig.yaml",
configContext: "my-dev-cluster",
// Only the cdk8sApp property is added
// There is no need to run synth on the cdk8sApp, this is done by the provider
cdk8sApp,
});
}
}
const app = new App();
new MyStack(app, "cdktf-cdk8s");
app.synth();
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
cdktf-cdk8s-0.3.5.tar.gz
(272.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
cdktf_cdk8s-0.3.5-py3-none-any.whl
(270.4 kB
view details)
File details
Details for the file cdktf-cdk8s-0.3.5.tar.gz.
File metadata
- Download URL: cdktf-cdk8s-0.3.5.tar.gz
- Upload date:
- Size: 272.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e39bd2d95f6cd9f7b2c54d5e9775ffa167eed7fa477bac68d722c2b839461b7
|
|
| MD5 |
29a0e92ef1f9d99f3aa00efb5d0fad2a
|
|
| BLAKE2b-256 |
34ae79a8c23acc249b49c71cd9744e40b54903740066d2874e56978822451535
|
File details
Details for the file cdktf_cdk8s-0.3.5-py3-none-any.whl.
File metadata
- Download URL: cdktf_cdk8s-0.3.5-py3-none-any.whl
- Upload date:
- Size: 270.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
798b8ef52e697ece8b0a311fae3e7c74d0694b3c9a358eb43b4d62b315e64a7e
|
|
| MD5 |
5864defb4d01f45f08e29534fd5b7575
|
|
| BLAKE2b-256 |
83c3b8fb47174ae60f3863347e883da842782c248e08845d0d2f419edbcbba49
|