# jrhouston/tfk8s

A tool for converting Kubernetes YAML manifests to Terraform HCL

Repository: https://github.com/jrhouston/tfk8s
Canonical: https://ross.abutalabs.com/products/tfk8s
Language: Go
License: MIT
License Family: permissive
Topics: terraform, kubernetes, converter, yaml, hcl
Last push: 2024-01-17T23:39:43+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 2318, "days_push": 959, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1057, forks 64 (observed 2026-08-28T04:03:24.765350+00:00)

## What it is
tfk8s is a Go CLI tool that converts Kubernetes YAML manifests into Terraform HCL for use with the Terraform Kubernetes Provider. It supports multi-document YAML, kubectl output stripping, Helm chart conversion, and directory trees of manifests.

## Use cases
- convert kubernetes yaml manifests to terraform hcl
- migrate existing k8s manifests to terraform
- pipe kubectl get output into terraform config
- convert a helm chart to terraform resources
- convert a directory of manifests to terraform

## When to choose
- you manage Kubernetes resources with the Terraform Kubernetes Provider and want to avoid hand-writing HCL
- you're migrating existing YAML manifests or docs examples into Terraform
- you want to import live cluster resources via kubectl output

## When to avoid
- you use the kubernetes/helm Terraform provider with raw YAML via kubectl_manifest-style files
- you don't use Terraform at all
- you need a library/API rather than a CLI

## Facets
- artifact type: cli-tool
- maturity: active
- function: parser, developer-tools, configuration-management, infrastructure-as-code
- domain: infrastructure-as-code, developer-tools
- platform: cli, windows, go
- tags: terraform, kubernetes, yaml-to-hcl, converter, kubectl, devops, containers, linux, macos

## Member repositories
- jrhouston/tfk8s (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:24.765350+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:57:58.658473+00:00, confidence not recorded.
  - readme: https://github.com/jrhouston/tfk8s (fetched 2026-08-28T04:03:24.765350+00:00, sha 58426d90319c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
