kubernetes 我怎样才能让pod进入运行状态?

t9aqgxwy  于 2022-12-29  发布在  Kubernetes
关注(0)|答案(1)|浏览(141)

sakshi_jain@192 ~ % kubectl获得po -n开发人员-923 姓名 准备就绪 状态 重启 我的豆荚-d5 b854 d94-ndgtd 0/1 错误 1 5分钟40秒

Events:

  Type     Reason     Age                   From     Message

  ----     ------     ----                  ----     -------

  Warning  Unhealthy  56m (x2 over 78m)     kubelet  Liveness probe failed: Get "http://10.251.64.173:8444/actuator/health/probe": dial tcp 10.251.64.173:8444: connect: connection refused

  Warning  BackOff    6m9s (x203 over 84m)  **kubelet  Back-off restarting failed container

  Warning  Unhealthy  0s (x16 over 88m)     kubelet  Readiness probe failed: Get "http://10.251.64.173:8444/actuator/health/probe": dial tcp 10.251.64.173:8444: connect: connection refused
```**


how can i get one pod in ready status ? I have tried checking logs , scaling cluster 


NAME                                            READY   STATUS   RESTARTS   AGE
my-pod-d5b854d94-ndgtd   1/1     Error    1          5m40s
lmyy7pcs

lmyy7pcs1#

查看错误,可以清楚地看到pod内部的Web服务器没有运行,因此活动性和就绪性探测失败。
pod似乎正在引发Java异常,Java进程正在终止。请确保Java进程已启动,并且Web服务器已联机,没有任何问题。

相关问题