macOS
brew install k2tflocal Homebrew formula metadata
sudo port install k2tfMacPorts ports tree · sysutils/k2tf/Portfile · source: api.github.com
brew / rank 5981
Kubernetes YAML to Terraform HCL converter. Version 0.8.0 via Homebrew; verified 2026-07-27. Also installable with nix: nix profile install nixpkgs#k2tf.
install
brew install k2tflocal Homebrew formula metadata
sudo port install k2tfMacPorts ports tree · sysutils/k2tf/Portfile · source: api.github.com
nix profile install nixpkgs#k2tfnixpkgs package indexes · pkgs/by-name/k2/k2tf/package.nix · source: api.github.com
scoop install main/k2tfScoop official bucket manifest trees · bucket/k2tf.json · source: api.github.com
overview
Kubernetes YAML to Terraform HCL converter
history
k2tf is a focused converter that turns Kubernetes API objects written as YAML into Terraform HCL suitable for the Terraform Kubernetes provider.
The project started publishing releases in February 2019. Its README defines a narrow purpose: convert Kubernetes YAML into Terraform configuration rather than manage clusters or replace Terraform itself.
k2tf fits teams that already have Kubernetes manifests but want Terraform-managed resources. Its adoption is niche because the need is specific, but package-manager presence in Homebrew, MacPorts, Nix, and Scoop shows enough CLI demand to keep it distributed.
Users feed Kubernetes YAML files or directories to `k2tf` and receive `.tf` output compatible with the Terraform Kubernetes provider. It is most useful during migrations from manifest-based workflows to Terraform-managed Kubernetes resources.
k2tf is a small but very package-nerdy bridge tool: it exists because two declarative ecosystems, Kubernetes YAML and Terraform HCL, overlap without sharing a native file format.
security posture
infrastructure mutation or orchestration signal.
orange risk · medium confidence · infrastructure
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
k2tf | executable | indexed executable | Discovered from the local executable index. |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
install metadata
| Package key | brew:k2tf |
|---|---|
| Version | 0.8.0 |
| Package manager | Homebrew |
| Homepage | https://github.com/sl1pm4t/k2tf |
| Repository | https://github.com/sl1pm4t/k2tf |
| Last updated | 2026-07-27T21:58:34+02:00 |
| Pulse | updated |
| Bottle | not recorded |
| Service | none declared |
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
k2tf
nix profile install nixpkgs#k2tfk2tf
sudo port install k2tfmain/k2tf
scoop install main/k2tfsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.