apache / dubbo

The java implementation of Apache Dubbo. An RPC and microservice framework.
https://dubbo.apache.org/
Apache License 2.0
40.41k stars 26.42k forks source link

Kubernetes 环境部署还需要额外部署 metadata server 和 config server 吗? #11978

Open lbhfuture opened 1 year ago

lbhfuture commented 1 year ago

Ask your question here

使用 xds 部署在 kubernetes 后,会报 metadata 和 config server 相关的错误:

2023-03-31T18:57:01.979+08:00  WARN 1 --- [eduler-thread-5] o.a.d.r.c.m.MetadataServiceNameMapping   :  [DUBBO] No valid metadata config center found for mapping report., dubbo version: 3.2.0-beta.5, current host: 10.244.2.65, error code: 0-2. This may be caused by , go to https://dubbo.apache.org/faq/0/2 to find instructions. 
2023-03-31T18:57:01.979+08:00 ERROR 1 --- [eduler-thread-5] org.apache.dubbo.config.ServiceConfig    :  [DUBBO] Failed register interface application mapping for service organization-producer/org.apache.dubbo.metadata.MetadataService:1.0.0, dubbo version: 3.2.0-beta.5, current host: 10.244.2.65, error code: 5-10. This may be caused by configuration server disconnected, go to https://dubbo.apache.org/faq/5/10 to find instructions. 

这是否意味着 dubbo3 部署在 kubernetes 后,并没有利用 kubernetes 的能力作为 metadata server 和 configserver,还是需要我们额外部署这两个组件?

aamingaa commented 1 year ago

不需要额外部署了,可能是日志打的有问题

aamingaa commented 1 year ago

可以参考下这个demo https://github.com/apache/dubbo-samples/tree/master/3-extensions/registry/dubbo-samples-kubernetes

lbhfuture commented 1 year ago

可以参考下这个demo https://github.com/apache/dubbo-samples/tree/master/3-extensions/registry/dubbo-samples-kubernetes

好的,我看一下,谢谢。

lbhfuture commented 1 year ago

可以参考下这个demo https://github.com/apache/dubbo-samples/tree/master/3-extensions/registry/dubbo-samples-kubernetes

我是按照 https://cn.dubbo.apache.org/zh-cn/overview/mannual/java-sdk/concepts-and-architecture/mesh/#dubbo-proxyless-mesh 使用 Istio 以 Proxyless Mesh 方式部署的,使用的是 xDS 注册,你这个链接是通过 ApiServer 部署的吧。这两个应该是不一样的吧?还是说我的理解有问题?

aamingaa commented 1 year ago

可以参考下这个demo https://github.com/apache/dubbo-samples/tree/master/3-extensions/registry/dubbo-samples-kubernetes

我是按照 https://cn.dubbo.apache.org/zh-cn/overview/mannual/java-sdk/concepts-and-architecture/mesh/#dubbo-proxyless-mesh 使用 Istio 以 Proxyless Mesh 方式部署的,使用的是 xDS 注册,你这个链接是通过 ApiServer 部署的吧。这两个应该是不一样的吧?还是说我的理解有问题?

xds不需要EnVoyFilter就能运行了。你可以看看dubbo-samples-xds模块,按步骤部署就可以成功了

maglna1 commented 9 months ago

我看实例里不需要部署元数据中心,元数据中心对应的配置项直接指定了20885端口,请问在这个过程中,元数据中心是由谁部署的?20885端口是谁的组件提供的元数据中心能力?