Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

这个项目团队还在么?怎么快1年没更新版本了,如何解决springcloud服务间访问流量转发的问题? #451

Open
982186883 opened this issue Oct 20, 2023 · 1 comment

Comments

@982186883
Copy link

springcloud开发中,对于服务间访问如何讲流量转发到本地项目上?毕竟服务间的访问并没有通过svc,而是直接在注册中心中获取的各个Pod的地址,然后进行负载均衡调用的请求,像这样的请求如何讲流浪转发到本地项目中呢?

@Jevai
Copy link

Jevai commented Nov 15, 2023

spring:
  application:
    name: @artifactId@
  cloud:
    nacos:
      server-addr: ${NACOS_HOST:lcdp-register}:${NACOS_PORT:8848}
      discovery:
        namespace: @nacos.namespace.id@
        ip: ${spring.application.name}-${profiles.active}
      config:
        namespace: @nacos.namespace.id@

修改IP配置,让它注册内部域名而不是IP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants