简体   繁体   中英

how do i get the pod in running status?

sakshi_jain@192 ~ % kubectl get po -n dev-923 NAME READY STATUS RESTARTS AGE my-pod-d5b854d94-ndgtd 0/1 Error 1 5m40s

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

Looking at the error it is clear that the web server inside the pod is not running. hence the liceness and readyness probes are failing.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM