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.4.2.tar.gz
(333.9 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.4.2-py3-none-any.whl
(332.2 kB
view details)
File details
Details for the file cdktf-cdk8s-0.4.2.tar.gz.
File metadata
- Download URL: cdktf-cdk8s-0.4.2.tar.gz
- Upload date:
- Size: 333.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d459050a2449d44d8d05268ccbe5f561ccb6fd4311feaf7cacb280766f15fb9
|
|
| MD5 |
7a948d8860426bfbbcc464271e93113d
|
|
| BLAKE2b-256 |
a6fe18ac8088df56f94cc28c70abfd952ba4d456e10283c4b7f2c0f0394a594a
|
File details
Details for the file cdktf_cdk8s-0.4.2-py3-none-any.whl.
File metadata
- Download URL: cdktf_cdk8s-0.4.2-py3-none-any.whl
- Upload date:
- Size: 332.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8222488d2ccd99013ddfab6e74c83f2be95e0169bcc5df05f8df72c4a96bb94e
|
|
| MD5 |
5185c8cc8c123a16860ce96238379f3a
|
|
| BLAKE2b-256 |
713bc68849a783dff9e77730847af32a72da106688c588ccf7dccd9207e47fd1
|