k2tf

Converts Kubernetes YAML manifests to Terraform HCL code

brewmacoslinux
Try with needOr install directly
Source

About

Kubernetes YAML to Terraform HCL converter

Commands

k2tf

Examples

Convert a single Kubernetes YAML file to Terraform$ k2tf -f deployment.yaml
Convert YAML from stdin and output Terraform code$ kubectl get deployment my-app -o yaml | k2tf
Convert YAML file and save to specific output file$ k2tf -f service.yaml -o main.tf