dxlance11 commented on issue #7373:
URL: 
https://github.com/apache/incubator-seata/issues/7373#issuecomment-2918188421

   > > > > > 
https://github.com/apache/incubator-seata/blob/v2.2.0/discovery/seata-discovery-raft/src/main/java/org/apache/seata/discovery/registry/raft/RaftRegistryServiceImpl.java#L450
 Seata-client不会去阶段你的域名
   > > > > 
   > > > > 
   > > > > 不小心点了关闭问题。 
我发现问题的原因了,使用operator部署raft集群时有个bug。seata服务端必须和客户端在同一个命名空间,否则seata返回的raft服务器元信息是错误的,会返回客户端所在命名空间的域名,把seata部署在跟客户端同一个命名空间就可以了。
   > > > 
   > > > 
   > > > 可以考虑修复这个问题,中间件和业务在不同的k8s命名空间是很常见的做法。
   > > 
   > > 
   > > seata 
raft的构建并不会去关注namespace,也不会去截断集群的地址,因为这个地址就是server的集群地址,如果这个地址被截断,server之间的通信就存在问题。
   > 
   > 那估计就是operator的bug了,我试试能不能还原成yaml文件的方式部署,再试试。
   
   
解决问题了,在k8s部署时不能使用容器的默认启动命令,要像operator部署的时候一样用一个python脚本等待DNS解析,并使用正确的SEATA_IP配置k8s内部域名。


-- 
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: notifications-unsubscr...@seata.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@seata.apache.org
For additional commands, e-mail: notifications-h...@seata.apache.org

Reply via email to