V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
coolair
V2EX  ›  Kubernetes

请问以下 k8s 安装 Metrics Server 一直报错是为啥?

  •  
  •   coolair · 2021-10-13 10:46:24 +08:00 · 1267 次点击
    这是一个创建于 919 天前的主题,其中的信息可能已经有所发展或是发生改变。

    k8s 版本 1.22.2

    metrics 版本 0.5.1

    报错信息:

    Warning  Unhealthy  93m   kubelet            Liveness probe failed: Get "https://10.0.1.20:443/livez": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
    

    已配置 - --kubelet-insecure-tls- --enable-aggregator-routing=true

    一直无法成功启动,有朋友知道是为什么吗?

    2 条回复    2021-11-01 20:25:25 +08:00
    iwishing
        1
    iwishing  
       2021-10-13 11:30:13 +08:00
    教你一损招,把 liveness 探针去掉。别说是我教的
    raynix
        2
    raynix  
       2021-11-01 20:25:25 +08:00
    先看看日志吧
    k logs -f kube-state-metrics-xxxxx
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5288 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 05:48 · PVG 13:48 · LAX 22:48 · JFK 01:48
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.