k2tf:Kubernetes YAML到Terraform HCL转换器-源码

上传者: 42138716 | 上传时间: 2021-02-03 14:05:15 | 文件大小: 86KB | 文件类型: ZIP
k2tf-Kubernetes YAML到Terraform HCL转换器 用于将Kubernetes API对象(YAML格式)转换为HashiCorp的Terraform配置语言的工具。 转换后的.tf文件适合与 安装 预建的二进制文件 从GitHub页面下载Binary。 从源代码构建 见下文 家酿 $ brew tap sl1pm4t/k2tf https://github.com/sl1pm4t/k2tf.git $ brew install k2tf 用法示例 转换单个YAML文件并将生成的Terraform配置写入Stdout $ k2tf -f test-fixtures/service.yaml 转换单个YAML文件并将输出写入文件 $ k2tf -f test-fixtures/service.yaml -o service.tf 转换Kubernetes YAML文件的目录 $ k2tf -f test-fixtures/ 直接从集群读取和转换Kubernetes对象 $ kubectl get deployments -o yaml | ./k2tf -

文件下载

资源详情

[{"title":"( 72 个子文件 86KB ) k2tf:Kubernetes YAML到Terraform HCL转换器-源码","children":[{"title":"k2tf-master","children":[{"title":".goreleaser.yml <span style='color:#111;'> 415B </span>","children":null,"spread":false},{"title":"pkg","children":[{"title":"k8sutils","children":[{"title":"k8sutils.go <span style='color:#111;'> 557B </span>","children":null,"spread":false}],"spread":true},{"title":"testutils","children":[{"title":"yaml.go <span style='color:#111;'> 371B </span>","children":null,"spread":false}],"spread":true},{"title":"tfkschema","children":[{"title":"schema.go <span style='color:#111;'> 2.91KB </span>","children":null,"spread":false},{"title":"schema_test.go <span style='color:#111;'> 3.08KB </span>","children":null,"spread":false},{"title":"name_mapper.go <span style='color:#111;'> 4.87KB </span>","children":null,"spread":false},{"title":"name_mapper_test.go <span style='color:#111;'> 6.20KB </span>","children":null,"spread":false}],"spread":true},{"title":"k8sparser","children":[{"title":"yaml_parser.go <span style='color:#111;'> 1.63KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"log.go <span style='color:#111;'> 1.66KB </span>","children":null,"spread":false},{"title":"hcl_writer.go <span style='color:#111;'> 16.64KB </span>","children":null,"spread":false},{"title":"utils_test.go <span style='color:#111;'> 696B </span>","children":null,"spread":false},{"title":"output.go <span style='color:#111;'> 898B </span>","children":null,"spread":false},{"title":"input.go <span style='color:#111;'> 2.20KB </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 16.33KB </span>","children":null,"spread":false},{"title":"Formula","children":[{"title":"k2tf.rb <span style='color:#111;'> 482B </span>","children":null,"spread":false}],"spread":true},{"title":".drone.yml <span style='color:#111;'> 862B </span>","children":null,"spread":false},{"title":"input_test.go <span style='color:#111;'> 801B </span>","children":null,"spread":false},{"title":"hcl_block.go <span style='color:#111;'> 3.64KB </span>","children":null,"spread":false},{"title":"main.go <span style='color:#111;'> 2.42KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 50B </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 588B </span>","children":null,"spread":false},{"title":"go.sum <span style='color:#111;'> 86.89KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 2.00KB </span>","children":null,"spread":false},{"title":"hcl_writer_test.go <span style='color:#111;'> 2.62KB </span>","children":null,"spread":false},{"title":"utils.go <span style='color:#111;'> 1.26KB </span>","children":null,"spread":false},{"title":"scripts","children":[{"title":"release.sh <span style='color:#111;'> 107B </span>","children":null,"spread":false}],"spread":false},{"title":"test-fixtures","children":[{"title":"podDisruptionBudget.tf.golden <span style='color:#111;'> 193B </span>","children":null,"spread":false},{"title":"service.yaml <span style='color:#111;'> 205B </span>","children":null,"spread":false},{"title":"job.yaml <span style='color:#111;'> 255B </span>","children":null,"spread":false},{"title":"cronJob.tf.golden <span style='color:#111;'> 512B </span>","children":null,"spread":false},{"title":"namespace_w_spec.tf.golden <span style='color:#111;'> 162B </span>","children":null,"spread":false},{"title":"service.tf.golden <span style='color:#111;'> 275B </span>","children":null,"spread":false},{"title":"podNodeExporter.yaml <span style='color:#111;'> 2.97KB </span>","children":null,"spread":false},{"title":"nested","children":[{"title":"kube-state-metrics-serviceaccount.yaml <span style='color:#111;'> 313B </span>","children":null,"spread":false},{"title":"server-pvc.yaml <span style='color:#111;'> 365B </span>","children":null,"spread":false},{"title":"server-clusterrole.yaml <span style='color:#111;'> 790B </span>","children":null,"spread":false},{"title":"server-clusterrolebinding.yaml <span style='color:#111;'> 521B </span>","children":null,"spread":false}],"spread":false},{"title":"ingress.tf.golden <span style='color:#111;'> 435B </span>","children":null,"spread":false},{"title":"namespace_w_spec.yaml <span style='color:#111;'> 153B </span>","children":null,"spread":false},{"title":"basicDeployment.yaml <span style='color:#111;'> 566B </span>","children":null,"spread":false},{"title":"networkPolicy.yaml <span style='color:#111;'> 484B </span>","children":null,"spread":false},{"title":"podDisruptionBudget.yaml <span style='color:#111;'> 151B </span>","children":null,"spread":false},{"title":"daemonset.yaml <span style='color:#111;'> 452B </span>","children":null,"spread":false},{"title":"networkPolicy.tf.golden <span style='color:#111;'> 640B </span>","children":null,"spread":false},{"title":"job.tf.golden <span style='color:#111;'> 357B </span>","children":null,"spread":false},{"title":"namespace.tf.golden <span style='color:#111;'> 162B </span>","children":null,"spread":false},{"title":"deployment2Containers.yaml <span style='color:#111;'> 555B </span>","children":null,"spread":false},{"title":"ingress.yaml <span style='color:#111;'> 344B </span>","children":null,"spread":false},{"title":"cronJob.yaml <span style='color:#111;'> 392B </span>","children":null,"spread":false},{"title":"daemonset.tf.golden <span style='color:#111;'> 624B </span>","children":null,"spread":false},{"title":"replicationController.yml <span style='color:#111;'> 1.57KB </span>","children":null,"spread":false},{"title":"statefulSet.yaml <span style='color:#111;'> 746B </span>","children":null,"spread":false},{"title":"roleBinding.yaml <span style='color:#111;'> 255B </span>","children":null,"spread":false},{"title":"endpoints.tf.golden <span style='color:#111;'> 515B </span>","children":null,"spread":false},{"title":"multiple_wCRD","children":[{"title":"crd.yaml <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false},{"title":"pod.yaml <span style='color:#111;'> 253B </span>","children":null,"spread":false}],"spread":false},{"title":"configMap.tf.golden <span style='color:#111;'> 225B </span>","children":null,"spread":false},{"title":"configMap.yaml <span style='color:#111;'> 161B </span>","children":null,"spread":false},{"title":"deployment.yaml <span style='color:#111;'> 4.48KB </span>","children":null,"spread":false},{"title":"namespace.yaml <span style='color:#111;'> 125B </span>","children":null,"spread":false},{"title":"issue-48.tf.golden <span style='color:#111;'> 447B </span>","children":null,"spread":false},{"title":"podNodeExporter.tf.golden <span style='color:#111;'> 1.96KB </span>","children":null,"spread":false},{"title":"deployment2Containers.tf.golden <span style='color:#111;'> 673B </span>","children":null,"spread":false},{"title":"basicDeployment.tf.golden <span style='color:#111;'> 727B </span>","children":null,"spread":false},{"title":"roleBinding.tf.golden <span style='color:#111;'> 322B </span>","children":null,"spread":false},{"title":"deployment.tf.golden <span style='color:#111;'> 4.10KB </span>","children":null,"spread":false},{"title":"statefulSet.tf.golden <span style='color:#111;'> 958B </span>","children":null,"spread":false},{"title":"role.yaml <span style='color:#111;'> 173B </span>","children":null,"spread":false},{"title":"endpoints.yaml <span style='color:#111;'> 400B </span>","children":null,"spread":false},{"title":"role.tf.golden <span style='color:#111;'> 182B </span>","children":null,"spread":false},{"title":"issue-48.yaml <span style='color:#111;'> 372B </span>","children":null,"spread":false}],"spread":false},{"title":"go.mod <span style='color:#111;'> 1.19KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明