You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/02/28 09:52:31 UTC

[GitHub] [apisix] w7team opened a new issue #3702: bug: k8s下建立的etcd服务地址,apisix无法解析

w7team opened a new issue #3702:
URL: https://github.com/apache/apisix/issues/3702


   `bash-5.0# curl http://127.0.0.1:9090/v1/server_info`
   {"id":"4ea26d5c-1df7-42aa-a7a1-731b15dd9e39","hostname":"apisix-server-7c5fddf5fc-cvjvr","boot_time":1614505444,"etcd_version":"unknown","up_time":154,"last_report_time":-1,"version":"2.3"}
   
   `bash-5.0# curl "http://127.0.0.1:9080/apisix/admin/services/" -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1'`
   {"error_msg":"etcd.etcd could not be resolved (2: Server failure)"}
   
   `bash-5.0# curl -s http://etcd.etcd:2379/version`
   {"etcdserver":"3.4.13","etcdcluster":"3.4.0"}
   
   
   etcd的服务地址是`http://etcd.etcd:2379`,直接访问没问题,启动apisix也正常,就是使用的时候报解析错误


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] tokers commented on issue #3702: bug: k8s下建立的etcd服务地址,apisix无法解析

Posted by GitBox <gi...@apache.org>.
tokers commented on issue #3702:
URL: https://github.com/apache/apisix/issues/3702#issuecomment-787559159


   @w7team What's your APISIX version?


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] spacewander commented on issue #3702: bug: k8s下建立的etcd服务地址,apisix无法解析

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #3702:
URL: https://github.com/apache/apisix/issues/3702#issuecomment-800743433


   Closed as lack of response.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] spacewander commented on issue #3702: bug: k8s下建立的etcd服务地址,apisix无法解析

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #3702:
URL: https://github.com/apache/apisix/issues/3702#issuecomment-787564566


   It seems you add this domain via /etc/hosts? A regular k8s service address is like `xxxx.svc.cluster.local:2379`.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] spacewander closed issue #3702: bug: k8s下建立的etcd服务地址,apisix无法解析

Posted by GitBox <gi...@apache.org>.
spacewander closed issue #3702:
URL: https://github.com/apache/apisix/issues/3702


   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] orange0cat commented on issue #3702: bug: k8s下建立的etcd服务地址,apisix无法解析

Posted by GitBox <gi...@apache.org>.
orange0cat commented on issue #3702:
URL: https://github.com/apache/apisix/issues/3702#issuecomment-822327871


   I also had this problem and solved it by configuring etcd srv name like "xxx.ingress-apisix.svc.cluster.local:2379".


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org