title: Can you define Kubernetes Services / Pods using YAML in Terraform?
body: <p>I am using the <a href="https://www.terraform.io/docs/providers/kubernetes/index.html" rel="nofollow noreferrer">Kubernetes Provider</a> to describe services/pods in Terraform.</p>
  
  <p>It can get confusing using the Hashicorp Configuration Language to define <a href="https://www.terraform.io/docs/providers/kubernetes/r/pod.html" rel="nofollow noreferrer">kubernetes_pod</a> or <a href="https://www.terraform.io/docs/providers/kubernetes/r/service.html" rel="nofollow noreferrer">kubernetes_service</a> resources because the Kubernetes documentation describes everything in YAML which it means you need to translate it into HCL.</p>
  
  <p>Is it possible to define pods as YAML and use them with <code>kubernetes_pod</code> and <code>kubernetes_service</code> resources as templates?</p>