should
V2EX  ›  Docker

万能的 V 站有老哥搞过 K8S 部署 SpringCloud 微服务吗

  •  
  •   should · Dec 4, 2018 · 3473 views
    This topic created in 2742 days ago, the information mentioned may be changed or developed.

    目前启动配置中心以后,因为配置中心高可用,启动三个 Pod,其他服务通过 name 找不到,会报错 unknown host,怎么解决

    2 replies    2018-12-05 17:55:39 +08:00
    luckybearops
        1
    luckybearops  
       Dec 5, 2018 via Android
    k8s 里面 pods 是通过 service 和其他 pod 通信的
    should
        2
    should  
    OP
       Dec 5, 2018
    @luckybearops 是啊,我现在就是直接写 config.uri ,写配置中心的 service 地址,就不从注册中心里面取了,这样也没毛病吧
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3683 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 10:36 · PVG 18:36 · LAX 03:36 · JFK 06:36
    ♥ Do have faith in what you're doing.