zoukankan      html  css  js  c++  java
  • Readiness probe failed:connection refused

    我的K8S集群在启动一个POD的时候说死起不来,然后就报下面的错误

    Events:
      Type     Reason     Age                    From                                       Message
      ----     ------     ----                   ----                                       -------
      Normal   Scheduled  6m52s                  default-scheduler                          Successfully assigned alpha-vup/alpha-aggregatofrgql to ip-10-xxx-xxx-247.ad.abc.com
      Normal   Started    6m19s (x2 over 6m51s)  kubelet,  ip-10-xxx-xxx-247.ad.abc.com  Started container
      Warning  Unhealthy  5m58s (x6 over 6m48s)  kubelet,  ip-10-xxx-xxx-247.ad.abc.com  Readiness probe failed: Get http://10.xxx.xxx.107:80/: dial tcp 10.xxx.xxx.107:80: connect: connection refused
      Warning  Unhealthy  5m50s (x6 over 6m40s)  kubelet, ip-10-xxx-xxx-247.ad.abc.com  Liveness probe failed: Get http://10.xxx.xxx.107:80/: dial tcp 10.xxx.xxx.107:80: connect: connection refused
    

    折腾了好久,解决方案就是注释掉,下面的行,然后你就可以helm upgrade了

    $ cat templates/deployment.yaml
                  #          livenessProbe:
                  #            httpGet:
                  #              path: /
                  #              port: http
                  #          readinessProbe:
                  #            httpGet:
                  #              path: /
                  #              port: http

    总结:Liveness 和readines这两个健康探针在使用时,你需要确保你的K8S集群中确实这两个服务

  • 相关阅读:
    mysql备份监控脚本
    关于ibatis的缓存的
    一些好用的软件和工具
    一,关于mongDB+SpringMVC【org.springframework.data.mongodb.core.MongoTemplate】
    java中的String内存分配原理
    java条件结构
    java运算符与选择结构
    JAVA变量补充
    JAVA变量
    java基础01
  • 原文地址:https://www.cnblogs.com/oskb/p/10876497.html
Copyright © 2011-2022 走看看