I'm using apisix in container mode in my local machine and I can't get to set routes using the config file, I read the logs and It turned out that the error is fetching data from etcd.
logs :
2023-04-29 16:55:07 2023/04/29 16:55:07 [error] 48#48:
*108 [lua] config_etcd.lua:634: failed to fetch data from etcd:
http://etcd:2379: Service Unavailable,
etcd key: /apisix/upstreams, context: ngx.timer
As the error stated:
http://etcd:2379: Service Unavailable,. You should check ifapisixcontainer can connect to theetcdservice.Usually, this error means your
apisixcontain andetcdare not in the same network. I suggest you start with the latest document: https://docs.api7.ai/apisix