kayx23 commented on issue #10530:
URL: https://github.com/apache/apisix/issues/10530#issuecomment-1870025034

   Just localized the issue a bit more and it doesn't seem to relate to 
@hanqingwu 's findings too much.
   
   It has something to do with whether you export the env var or not:
   
   * If you set the env var with `export env_var=value`, APISIX will pick up 
the env var normally.
   * If you do not export and just set the env var with `env_var=value`, 
`apisix init` will fail with `failed to resolve variables`
   
   I installed APISIX on the host machine and tested with `config.yaml` and 
`apisix.yaml` in standalone mode.
   
   ## Successful Test with `apisix.yaml`
   
   First, `export UPSTREAM_NODE_HTTPBIN=httpbin.org`
   
   
![image](https://github.com/apache/apisix/assets/39619599/d2899e7b-c0fa-4ec9-8d56-1300550c0603)
   
![image](https://github.com/apache/apisix/assets/39619599/4238e9a4-d78c-4afc-80b5-7d2cefe465b6)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to