Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

request help: 如何配置nacos作为服务发现中心 #2431

Closed
HuangDayu opened this issue Oct 15, 2020 · 2 comments
Closed

request help: 如何配置nacos作为服务发现中心 #2431

HuangDayu opened this issue Oct 15, 2020 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@HuangDayu
Copy link

Issue description

126 etcd:
127   host:                           # it's possible to define multiple etcd hosts addresses of the same etcd cluster.
128     - "http://127.0.0.1:2379"     # multiple etcd address
129   prefix: "/apisix"               # apisix configurations prefix
130   timeout: 30                     # 30 seconds
131   # user: root                     # root username for etcd
132   # password: 5tHkHhYkjr6cQY        # root password for etcd
133 #eureka:
134 #  host:                           # it's possible to define multiple eureka hosts addresses of the same eureka cluster.
135 #    - "http://127.0.0.1:8761"
136 #  prefix: "/eureka/"
137 #  fetch_interval: 30              # default 30s
138 #  weight: 100                     # default weight for node
139 #  timeout:
140 #    connect: 2000                 # default 2000ms
141 #    send: 2000                    # default 2000ms
142 #    read: 5000                    # default 5000ms
143 nacos:
144   host:
145     - "http://127.0.0.1:8848"
146   prefix: "/nacos"
147   timeout: 30

Environment

  • apisix version (cmd: apisix version): 1.5
  • OS: CentOS 8

Desc

这样配置了之后,在上游看不到Nacos的服务。

@HuangDayu
Copy link
Author

https://github.com/nacos-group/nacos-coredns-plugin
https://github.com/coredns/coredns
https://github.com/caddyserver/caddy

go get -u github.com/mholt/caddy
go: github.com/mholt/caddy upgrade => v1.0.5
go get: github.com/mholt/[email protected]: parsing go.mod:
        module declares its path as: github.com/caddyserver/caddy
                but was required as: github.com/mholt/caddy
make: *** [godeps] Error 1

又遇到问题。。。
用开源真的是太难了。。。

@juzhiyuan
Copy link
Member

There has one related issue[1], please follow this issue.

[1] #1731

@juzhiyuan juzhiyuan added the duplicate This issue or pull request already exists label Oct 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants