Automic VaultAutomic Vault

brew

Install k2tf with Homebrew, MacPorts, Nix, scoop

Kubernetes YAML to Terraform HCL converter. Version 0.8.0 via Homebrew; verified from local package data.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install k2tf

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install k2tf

MacPorts ports tree · sysutils/k2tf/Portfile · source: api.github.com

Linux

Nixverified · 92%
nix profile install nixpkgs#k2tf

nixpkgs package indexes · pkgs/by-name/k2/k2tf/package.nix · source: api.github.com

Windows

Scoopverified · 92%
scoop install main/k2tf

Scoop official bucket manifest trees · bucket/k2tf.json · source: api.github.com

overview

Package summary

Kubernetes YAML to Terraform HCL converter

Commands and aliases

  • k2tf

history

Project history and usage

k2tf is a focused converter that turns Kubernetes API objects written as YAML into Terraform HCL suitable for the Terraform Kubernetes provider.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 2019: k2tf v0.1.0 was released in February.
  • 2021: v0.6.0 updated the Terraform Kubernetes provider dependency and noted Homebrew core migration documentation.
  • 2024: v0.8.0 was published.

Related projects

  • k2tf is related to the Terraform Kubernetes provider, Kubernetes manifests, and sibling conversion tools such as tfk8s.

security posture

Risk level: orange

infrastructure mutation or orchestration signal.

Risk classifier

orange risk · medium confidence · infrastructure

Why

  • infrastructure mutation or orchestration signal

Signals

  • text:kubernetes

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 10 platform targets.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
k2tfcliglobal executable

freshness

Version and 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.

page generated2026-07-08
manager version0.8.0
manager updated
local dataok
upstreamcurrent
latest detectedv0.8.0

https://github.com/sl1pm4t/k2tf

  • infoNo package-manager update timestamp was available.low confidence

install metadata

Package metadata

Package keybrew:k2tf
Version0.8.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/k2tf
Homepagehttps://github.com/sl1pm4t/k2tf
Repositoryhttps://github.com/sl1pm4t/k2tf
Upstream docshttps://github.com/sl1pm4t/k2tf#readme
LicenseMPL-2.0
Source archivehttps://github.com/sl1pm4t/k2tf/archive/refs/tags/v0.8.0.tar.gz
Build dependenciesgo
Bottleavailable (on arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namek2tf
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

k2tf

nix profile install nixpkgs#k2tf
  • normalized package name match
  • Matched by: K2tf
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/k2/k2tf/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
MacPorts95%

k2tf

sudo port install k2tf
  • normalized package name match
  • Matched by: K2tf
MacPorts ports tree · api.github.com · MacPorts ports tree: sysutils/k2tf/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Scoop95%

main/k2tf

scoop install main/k2tf
  • normalized package name match
  • Matched by: K2tf
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/k2tf.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment