guofushan2903
V2EX  ›  问与答

consul 注册的服务如何让其他主机访问的到?

  •  
  •   guofushan2903 · Jan 4, 2024 · 895 views
    This topic created in 894 days ago, the information mentioned may be changed or developed.

    有懂 consul 的老哥吗? 有个问题:部署了套 consul ,注册服务后,如何让其他主机能访问通该注册的域名呢? 目前使用的 consuul server 上部署个 dns ,然后让需要访问域名的主机配置 dns 到 resolv.conf 做解析, 但是有个问题,如果该主机已经配置了 resolv.conf ,那么就无法使用该办法了;

    1 replies    2024-01-04 13:42:28 +08:00
    julyclyde
        1
    julyclyde  
       Jan 4, 2024
    想无感恐怕是比较难
    建议还是针对性的做改造,让它的客户端支持去 consul 里发现
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4638 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 01:04 · PVG 09:04 · LAX 18:04 · JFK 21:04
    ♥ Do have faith in what you're doing.