A tool that converts Kubernetes YAML manifests to Terraform HCL for use with the Terraform Kubernetes Provider.
tfk8s is a CLI tool that automatically converts Kubernetes YAML manifests into Terraform HCL configurations. It solves the problem of manually translating YAML to HCL when using the Terraform Kubernetes Provider, enabling seamless integration of Kubernetes resources into Terraform-managed infrastructure.
DevOps engineers, platform teams, and infrastructure developers who manage Kubernetes with Terraform and need to migrate or incorporate existing YAML manifests.
It eliminates the tedious, error-prone process of manual YAML-to-HCL conversion, saving time and ensuring consistency when adopting Terraform for Kubernetes orchestration.
A tool for converting Kubernetes YAML manifests to Terraform HCL
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
It transforms Kubernetes YAML files, including multi-document manifests, into Terraform HCL automatically, eliminating manual translation as demonstrated in the demo.
It pipes output from kubectl get commands and strips server-side fields for cleaner Terraform resources, seamlessly integrating with existing Kubernetes workflows.
It processes helm template output to convert Helm charts to Terraform configurations, enabling unified infrastructure-as-code management of Helm releases.
It can recursively convert directories of YAML files using shell commands, making it efficient for large-scale migrations or adoption projects.
The tool does not validate YAML syntax or ensure Terraform compatibility, risking malformed configurations if input has errors.
Features like Helm conversion require pre-running helm template, adding complexity and potential failure points to the workflow.
It outputs raw HCL maps without optimizing for Terraform best practices, such as using variables, locals, or module abstractions.