tfk8s
« Back to VersTracker
Description:
Kubernetes YAML manifests to Terraform HCL converter
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Devops
Tags: kubernetes terraform devops yaml hcl converter
Install: brew install tfk8s
About:
tfk8s is a command-line tool that parses Kubernetes YAML manifests and converts them into Terraform HCL configuration. This allows DevOps engineers to migrate existing Kubernetes resources into Terraform management without manual rewriting. It streamlines the adoption of infrastructure-as-code practices for clusters.
Key Features:
  • Parses standard Kubernetes YAML files
  • Generates valid Terraform HCL syntax
  • Supports piping input via stdin for automation
  • Handles standard resource types like Deployments and Services
Use Cases:
  • Importing existing cluster resources into a Terraform state
  • Converting static YAML configurations into dynamic infrastructure code
  • Automating the translation of manifests for CI/CD pipelines
Alternatives:
  • k2tf – Similar functionality written in Go; tfk8s is often cited for its specific CLI simplicity.
  • kubectl – Standard cluster CLI; does not perform Terraform conversion but is used to generate the YAML input.
Version History
Detected Version Rev Change Commit
Sep 12, 2025 12:40am 0 VERSION_BUMP 8cea426c
Nov 8, 2024 11:20pm 0 VERSION_BUMP 25fc0e44
Sep 12, 2024 10:38pm 0 VERSION_BUMP 1861f7dc