sjmshsh opened a new issue, #52:
URL: https://github.com/apache/dubbo-kubernetes/issues/52

   当前dubboctl会根据用户install了哪些组件自动将相应的注册中心的地址注入到k8s的yaml文件,不过目前的注入是在使用dubboctl 
deploy生成的yaml的情况下的。当前需要给用户提供一个选择,也就是不使用dubboctl 
deploy生成的yaml文件,用户自己写的yaml文件也可以去动态的注入。
   具体的做法是在dubboctl install的阶段将动态准入控制器安装到k8s 
apiserver,然后在dubbo-injection=enabled的命名空间中的应用实现注入,在打了"dubbo-deploy"="enabled"的命名空间中去查找zk或者nacos的Pod里面有没有打上自动注入的labels("dubbo.apache.org/zookeeper"="true","dubbo.apache.org/nacos"="true"),如果同时有的话zk优先,用动态注入控制器为用户自己撰写的yaml文件添加DUBBO_REGISTRY_ADDRESS地址,格式为
 zookeeper://zookeeper.dubbo-system.svc类似这样。


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