k8sd life cycle of pod

pod life cycle :

  Status : pending pending

Did not satisfy the condition node

 

running operation

 

Failed

 

sucess

 

unkonwn

 

 

pod life cycle of important behaviors:

Initialization container

Container detection: LIVENESS the Probe   to detect whether a container vessel survival alive probe status

          readindess probe to detect whether a container in the main program normally provides service-ready probe

 

restartPolicy: container restart strategy

        Always,OnFailure,Never,Default to always

 

pod termination procedure : send instructions to the container and has to wait for the mechanism

 

There are three types of probes: probe container

kubectl explain pods.spec.containers

 

    ExecAction:

TCPSocketAction: Socket Probe

 HTTPGetAction:

      

liveness Probe probe case

kubectl explain pods.spec.containers.livenessProbe

E.g

kubectl explain pods.spec.containers.livenessProbe.exec

Guess you like

Origin www.cnblogs.com/leiwenbin627/p/11291806.html