Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Pod failure

Sumit Rawal answered on June 17, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • Exception: Error running pod install
  • kubectl pod stuck terminating
  • kubernetes pod stuck in terminating
  • what is a pod?
  • kubernetes pod stuck in terminating
  • Exception: Error running pod install
  • What is a Pod?

  • Pod failure

    0

    It is possible for Pods and the applications they’re running to crash or fail. Kubernetes can attempt to self-heal a situation like this by starting a new Pod to replace the failed one.

    Use kubectl delete pod to manually delete one of the Pods (refer to the previous kubectl get pods output for a list of Pod names).

    $ kubectl delete pod qsk-deploy-69996c4549-r59nl

    pod "qsk-deploy-69996c4549-r59nl" deleted

    As soon as the Pod is deleted, the number of Pods on the cluster will drop to 4 and no longer match the desired state of 5. The Deployment controller will notice this and automatically start a new Pod to take the observed number of Pods back to 5.

    List the Pods again to see if a new Pod has been started.

    $ kubectl get pods

    NAME READY STATUS RESTARTS AGE

    qsk-deploy-69996c4549-mwl7f 1/1 Running 0 20m

    qsk-deploy-69996c4549-9xwv8 1/1 Running 0 20m

    qsk-deploy-69996c4549-ksg8t 1/1 Running 0 20m

    qsk-deploy-69996c4549-qmxp7 1/1 Running 0 20m

    qsk-deploy-69996c4549-hd5pn 1/1 Running 0 5s

    Congratulations! There are 5 Pods running, and Kubernetes performed the self-healing without needing help from you.

    Over here, notice how the last Pod in the list has only been running for 5 seconds. This is when the replacement Pod Kubernetes started to reconcile the desired state. 

    Popularity 1/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Tags: whatever
    Link to this answer
    Share Copy Link
    Contributed on Jun 17 2023
    Sumit Rawal
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.