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集群中确实这两个服务

转载于:https://www.cnblogs.com/oskb/p/10876497.html

  • 4
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值