apache / dubbo-admin

The ops and reference implementation for Apache Dubbo
https://dubbo.apache.org
Apache License 2.0
3.99k stars 2.17k forks source link

Dubbo Admin云原生适配 #1139

Open chickenlj opened 1 year ago

chickenlj commented 1 year ago

Dubbo提供了和k8s结合的几种用法,但是并未在Dubbo Admin中进行适配,需要根据具体的场景来进行适配,保证Dubbo Admin在云原生场景下能够继续发挥服务查询,流量管控等作用。

应用级别注册的服务查询

此功能详见文档介绍。该功能和云原生没有直接关系,但是在Dubbo Admin用go语言重构的时候,没有实现,本次需要将Java版本中该功能迁移过来。

Dubbo 服务直接在k8s中进行发布

参考示例:https://github.com/apache/dubbo-samples/tree/master/3-extensions/registry/dubbo-samples-kubernetes

该示例使用K8s作为Dubbo的注册中心,Provider和Consumer直接和API Server交互。

image

Dubbo Admin的对应功能如下:

Side Car模式

参考示例:https://github.com/apache/dubbo-samples/tree/master/3-extensions/registry/dubbo-samples-mesh-k8s

image

XDS模式

参考:https://github.com/apache/dubbo-samples/tree/master/3-extensions/registry/dubbo-samples-xds

Phixsura commented 1 year ago

assign

nzomkxia commented 1 year ago
  1. 对于服务查询来说,不管有没有side car,Dubbo Admin都直接跟API SERVER交互(存在side car的情况可能参考kiali)
  2. 对于流量管控来说,没有side car的情况下,依赖于Dubbo目前在k8s下的路由规则适配,Dubbo Admin作为客户端,通过api server与注册中心(k8s)进行交互;有side car的情况下,参考kiali的功能,借助Istio的VirtualService等进行流量管控