Terraform Kubernetes provider spec from file

3/27/2018

I want to deploy Kubernetes pod using the Terraform k8s provider, but I don't want to write spec for this pod in HCL inside Terraform as I have an external YAML file with spec).

Can I import the YAML spec into Terraform to deploy a k8s pod? And if yes, how to do it?

-- Mikhail Naletov
kubernetes
terraform
yaml

1 Answer

4/18/2018

There is an explanation there.

Short answer: you can't do it and you won't be able to do it if you use basic kubernetes-provider, Hashicorp won't implement this feature.

-- Mikhail Naletov
Source: StackOverflow