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.0.30.tar.gz
(262.5 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.0.30-py3-none-any.whl
(261.1 kB
view details)
File details
Details for the file cdktf-cdk8s-0.0.30.tar.gz.
File metadata
- Download URL: cdktf-cdk8s-0.0.30.tar.gz
- Upload date:
- Size: 262.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9a9dbc548b2f96e420ec7d8fae9bedbce44187b11c1ca0b8bf72a736b4a1e7c
|
|
| MD5 |
bab2ffd30ce012c984556dcf1fdf527a
|
|
| BLAKE2b-256 |
3f59262dbcfd98110c66d39ea96563a4285ca67b2dae123b128e868e9984bf3c
|
File details
Details for the file cdktf_cdk8s-0.0.30-py3-none-any.whl.
File metadata
- Download URL: cdktf_cdk8s-0.0.30-py3-none-any.whl
- Upload date:
- Size: 261.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ead9f8d364a4b2784f4b2b29b98f0e85268af4a15dfa76626003a38227d801a3
|
|
| MD5 |
167ce99600ec0455b930ee357ffd3900
|
|
| BLAKE2b-256 |
843716a3f5348a6325d2f0018ceb7a94d7dd223d7601e023f1a2452bce143d34
|