k2tf
« Back to VersTracker
Description:
Kubernetes YAML to Terraform HCL converter
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Devops
Tags: kubernetes terraform devops iac converter
Install: brew install k2tf
About:
k2tf is a command-line tool that automatically converts Kubernetes YAML manifests into Terraform HCL configuration. It helps teams adopt infrastructure-as-code by translating existing cluster resources into native Terraform syntax. This streamlines the migration process and reduces manual errors.
Key Features:
  • Converts Kubernetes YAML to Terraform HCL
  • Supports a wide range of resource types
  • Preserves resource relationships and dependencies
  • Command-line interface for automation
Use Cases:
  • Migrating existing Kubernetes clusters to Terraform management
  • Converting static YAML files into dynamic infrastructure code
  • Learning Terraform syntax by comparing it to existing Kubernetes configs
Alternatives:
  • k2tf (Go version) – The original k2tf is a widely used alternative, though this version may offer different feature sets or performance.
  • k2tf (Python version) – An alternative implementation that may differ in supported resource types and conversion logic.
Version History
Detected Version Rev Change Commit
Sep 12, 2025 3:05pm 0 VERSION_BUMP 03a0f202
Sep 14, 2024 10:49am 0 VERSION_BUMP 90494b30