title: Consul-template nginx upstream not found
body: <p>I have nginx in which consul-template prescribes upstream for golang services.
  When deploying, the service is started and registered with consul, after which consul-template writes it upstream. After that, nginx -t is checked and an error is generated that upstream is not found.
  The problem is floating, because sometimes the deployment is successful
  Can you help me understand what could be wrong?</p>