incubator-seata icon indicating copy to clipboard operation
incubator-seata copied to clipboard

k8s部署seata-server的客户端连接问题

Open XiaoNing0430 opened this issue 1 month ago • 1 comments

Check Ahead

  • [x] I have searched the issues of this repository and believe that this is not a duplicate.

Ⅰ. Issue Description

k8s是seata-server2.0版本,nacos作为注册中心和配置中心,使用NodePort方式对外提供服务。nacos上注册的地址和端口是虚拟ip:8091,使用SEATA_IP设置节点ip后是节点ip:8091。如何设置端口为暴露的端口?

Image Image

Nacos:

Image

XiaoNing0430 avatar Nov 01 '25 14:11 XiaoNing0430

You can try using the SEATA_PORT environment variable to specify the port number that the Seata Server registers with the registry center as the port exposed by the NodePort Service

https://seata.apache.org/docs/ops/deploy-by-docker/#environment-variables

xingfudeshi avatar Nov 18 '25 07:11 xingfudeshi