I am trying to substitute environment variables into a .yaml file, and pass the resulting file into kubectl:
kubectl
> cat template.yaml apiVersion: