sl1pm4t/k2tf
关于
将 Kubernetes YAML 转换为 Terraform HCL 的转换器
系统与基础设施实测星标增长
- 24小时
- -1
- 7天
- -1
- 15天
- 0
- 1个月
- -2
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文k2tf - Kubernetes YAML to Terraform HCL converter
A tool for converting Kubernetes API Objects (in YAML format) into HashiCorp's Terraform configuration language.
The converted .tf files are suitable for use with the Terraform Kubernetes Provider
Installation
Pre-built Binaries
Download Binary from GitHub releases page.
Build from source
See below
Homebrew
$ brew install k2tf
asdf
Use the asdf-k2tf plugin.
Example Usage
Convert a single YAML file and write generated Terraform config to Stdout
$ k2tf -f test-fixtures/service.yaml
Convert a single YAML file and write output to file
$ k2tf -f test-fixtures/service.yaml -o service.tf
Convert a directory of Kubernetes YAML files
$ k2tf -f test-fixtures/
Read & convert Kubernetes objects directly from a cluster
$ kubectl get deployments -o yaml | ./k2tf -o deployments.tf
Building
NOTE Requires a working Golang build environment.
This project uses Golang modules for dependency management, so it can be cloned outside of the $GOPATH.
Clone the repository
$ git clone https://github.com/sl1pm4t/k2tf.git
Build
$ cd k2tf
$ make build
Run Tests
$ make test
探索相关项目
加载中…