incubator-seata
incubator-seata copied to clipboard
k8s部署seata-server的客户端连接问题
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。如何设置端口为暴露的端口?
Nacos:
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