tfk8s

Convert Kubernetes YAML manifests to Terraform HCL code

brewmacoslinux
Try with needOr install directly
Source

About

Kubernetes YAML manifests to Terraform HCL converter

Commands

tfk8s

Examples

convert a kubernetes yaml file to terraform$ tfk8s -f deployment.yaml
convert kubernetes yaml and save output to file$ tfk8s -f service.yaml -o terraform.tf
convert all yaml files in a directory$ tfk8s -f ./manifests/
convert piped kubernetes yaml to terraform$ cat deployment.yaml | tfk8s
convert kubernetes yaml with custom resource definitions$ tfk8s -f custom-resource.yaml --allow-custom-resources