macOS
brew install k2tflocal Homebrew formula metadata
sudo port install k2tfMacPorts ports tree · sysutils/k2tf/Portfile · source: api.github.com
brew
Kubernetes YAML to Terraform HCL converter. Version 0.8.0 via Homebrew; verified from local package data.
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 | cli | global executable |
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.
https://github.com/sl1pm4t/k2tf
install metadata
| Package key | brew:k2tf |
|---|---|
| Version | 0.8.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/k2tf |
| Homepage | https://github.com/sl1pm4t/k2tf |
| Repository | https://github.com/sl1pm4t/k2tf |
| Upstream docs | https://github.com/sl1pm4t/k2tf#readme |
| License | MPL-2.0 |
| Source archive | https://github.com/sl1pm4t/k2tf/archive/refs/tags/v0.8.0.tar.gz |
| Build dependencies | go |
| Bottle | available (on arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | k2tf |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
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.