V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
yochine

关于 rancher 部署 k8s 集群问题

  •  
  •   yochine · Dec 27, 2021 · 2419 views
    This topic created in 1595 days ago, the information mentioned may be changed or developed.

    环境:rancher v2.3.3
    部署了一个 server 节点 两个 work 节点
    部署了 springcloud 微服务
    nacos 部署在 work 节点 1 mysql 部署在 work 节点 1
    问题来了
    work1 节点的服务都能注册到 nacos 中也能连上 mysql 镜像服务 通过容器名
    work2 节点的服务启动都报错 读取不到 mysql 配置 注册不到 nacos 中
    work1 节点能 ping 通 work2 节点
    work2 节点也能 ping 通 work1 节点

    有大佬们遇到这个问题吗

    2 replies    2021-12-27 10:56:09 +08:00
    kylinC
        1
    kylinC  
       Dec 27, 2021
    检查一下你的集群 DNS 服务,集群内部的通讯都是通过 DNS 服务来解析的
    litchinn
        2
    litchinn  
       Dec 27, 2021
    建议再多点细节描述,比如你的 service 资源怎么创建的,微服务是怎么配置这些资源地址的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3063 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 05:35 · PVG 13:35 · LAX 22:35 · JFK 01:35
    ♥ Do have faith in what you're doing.