apache / apisix

The Cloud-Native API Gateway
https://apisix.apache.org/blog/
Apache License 2.0
14.28k stars 2.48k forks source link

help request: handle_upstream(): failed to set upstream: no valid upstream node: failed to query the DNS server #11300

Closed winnie1228 closed 3 weeks ago

winnie1228 commented 3 months ago

Description

deploy way: docker-compose apisix/conf/config.yaml: discovery: dns: servers:

Environment

winnie1228 commented 3 months ago

I just found that running consul directly on the host machine can discover services through apisix DNS. Is there anything special that needs to be paid attention to when deploying consul in docker?

nfrankel commented 3 months ago

Is there anything special that needs to be paid attention to when deploying consul in docker?

I'm afraid you need to ask the question to the Consul project itself

kayx23 commented 2 months ago

See if this doc helps: https://docs.api7.ai/apisix/how-to-guide/service-discovery/consul-integration

Both Apisix and consul are started in Docker in that doc.

github-actions[bot] commented 3 weeks ago

Due to lack of the reporter's response this issue has been labeled with "no response". It will be close in 3 days if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the dev@apisix.apache.org list. Thank you for your contributions.

github-actions[bot] commented 3 weeks ago

This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.