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?
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.