All Projects → sl1pm4t → K2tf

sl1pm4t / K2tf

Licence: mpl-2.0
Kubernetes YAML to Terraform HCL converter

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to K2tf

Remarshal
Convert between CBOR, JSON, MessagePack, TOML, and YAML
Stars: ✭ 421 (-11.74%)
Mutual labels:  command-line-tool, utility, yaml, converter
Tfk8s
A tool for converting Kubernetes YAML manifests to Terraform HCL
Stars: ✭ 167 (-64.99%)
Mutual labels:  terraform, hcl, yaml, converter
Perun
A command-line validation tool for AWS Cloud Formation that allows to conquer the cloud faster!
Stars: ✭ 82 (-82.81%)
Mutual labels:  yaml, converter, tool
Swagger Toolbox
💡 Swagger schema model (in yaml, json) generator from json data
Stars: ✭ 194 (-59.33%)
Mutual labels:  yaml, converter, tool
Config Lint
Command line tool to validate configuration files
Stars: ✭ 118 (-75.26%)
Mutual labels:  terraform, hcl, yaml
Terraform Best Practices
Terraform Best Practices for AWS users
Stars: ✭ 931 (+95.18%)
Mutual labels:  hashicorp, terraform, hcl
Hcloud Okd4
Deploy OKD4 (OpenShift) on Hetzner Cloud
Stars: ✭ 29 (-93.92%)
Mutual labels:  hashicorp, terraform, hcl
Vaultron
🤖 Vault clusters Terraformed onto Docker for great fun and learning!
Stars: ✭ 96 (-79.87%)
Mutual labels:  hashicorp, terraform, hcl
Atlantis On Gke
A set of @HashiCorp Terraform configurations for running Atlantis on @GoogleCloud GKE
Stars: ✭ 44 (-90.78%)
Mutual labels:  hashicorp, terraform, hcl
stein
A linter for config files with a customizable rule set
Stars: ✭ 92 (-80.71%)
Mutual labels:  yaml, hcl, hashicorp
json2xml
json to xml converter in python3
Stars: ✭ 76 (-84.07%)
Mutual labels:  converter, utility, command-line-tool
Kubecdn
Self-hosted CDN based on Kubernetes
Stars: ✭ 314 (-34.17%)
Mutual labels:  terraform, hcl
Terraformer
CLI tool to generate terraform files from existing infrastructure (reverse Terraform). Infrastructure to Code
Stars: ✭ 6,316 (+1224.11%)
Mutual labels:  terraform, hcl
Kubernetes Digitalocean Terraform
📋 🌊 🌎 Setup a simple Kubernetes cluster in Digital Ocean using Terraform
Stars: ✭ 324 (-32.08%)
Mutual labels:  terraform, hcl
Terraform Null Label
Terraform Module to define a consistent naming convention by (namespace, stage, name, [attributes])
Stars: ✭ 324 (-32.08%)
Mutual labels:  terraform, hcl
Elasticsearch Cloud Deploy
Deploy Elasticsearch on the cloud easily
Stars: ✭ 308 (-35.43%)
Mutual labels:  terraform, hcl
Jk
Configuration as Code with ECMAScript
Stars: ✭ 322 (-32.49%)
Mutual labels:  hcl, yaml
Vault On Gke
Run @HashiCorp Vault on Google Kubernetes Engine (GKE) with Terraform
Stars: ✭ 453 (-5.03%)
Mutual labels:  terraform, hcl
Hcl
HCL is the HashiCorp configuration language.
Stars: ✭ 3,749 (+685.95%)
Mutual labels:  hashicorp, hcl
Caf Terraform Landingzones
Cloud Adoption Framework for Azure - Terraform landing zones
Stars: ✭ 335 (-29.77%)
Mutual labels:  terraform, hcl

k2tf - Kubernetes YAML to Terraform HCL converter

Build Status Go Report Card Release

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

asciicast

Installation

Pre-built Binaries

Download Binary from GitHub releases page.

Build from source

See below

Homebrew

$ brew tap sl1pm4t/k2tf https://github.com/sl1pm4t/k2tf.git
$ brew install k2tf

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

Downloads

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].