# CDKTF CDK8s
A compatability layer for using cdk8s constructs within Terraform CDK.
## Usage
```python
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();
```
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
共16个文件
txt:4个
py:3个
pkg-info:2个
资源分类:Python库 所属语言:Python 资源全名:cdktf-cdk8s-0.0.75.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论
收起资源包目录
cdktf-cdk8s-0.0.75.tar.gz (16个子文件)
cdktf-cdk8s-0.0.75
MANIFEST.in 23B
PKG-INFO 2KB
pyproject.toml 106B
LICENSE 1KB
src
cdktf_cdk8s.egg-info
PKG-INFO 2KB
requires.txt 140B
SOURCES.txt 384B
top_level.txt 12B
dependency_links.txt 1B
cdktf_cdk8s
py.typed 1B
_jsii
cdktf-cdk8s@0.0.75.jsii.tgz 248KB
__init__.py 419B
__init__.py 22KB
setup.cfg 38B
setup.py 2KB
README.md 1KB
共 16 条
- 1
资源评论
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功