shoyu666 opened a new issue #8374:
URL: https://github.com/apache/dubbo/issues/8374


   
https://github.com/apache/dubbo/blob/3.0/dubbo-registry/dubbo-registry-kubernetes/src/main/java/org/apache/dubbo/registry/kubernetes/KubernetesServiceDiscovery.java
   现状:
   ```
            当前是将metadata写入pod的Annotation,获取的时候是先获取Endpoints,再找到对应的pod的metadata。
   ```
   Question:
   ```
            1:是否可以监听Endpoints并直接写入metadata到Endpoints更为直接。
            2:开发环境下,本地开发电脑跑A服务,会和服务器的其它服务(通过zk注册中心)互相访问(网络基于阿里云sag打通),
               但基于k8s的实现如何打通?
               如果直接基于Endpoints,将本地开发电脑以Endpoints加入到k8s集群是否ok?
   
   apiVersion: v1
   kind: Endpoints
   metadata:
     annotations:
       io.dubbo/metadata:...
     name: ${serviceName}
   subsets:
     - addresses:
         - ip: ${本地开发机器ip,基于sag}
       ports:
         - port: xxxx
   ```


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to