elotl / kip

Virtual-kubelet provider running pods in cloud instances
Apache License 2.0
223 stars 14 forks source link

fix up pod phase: reset to Pending when kip pod should be restarted #62

Closed justnoise closed 4 years ago

justnoise commented 4 years ago

When a pod or cell fails in kip, the pod should behave similarly to a pod/container failing in kubelet. The pod should be restarted on a new cell, similar to a container being recreated (depending on the pod's restart policy)

In k8s, if a pod enters into a terminal state, it never leaves that state. To deal with this, lets reset a failed pod back to Pending in k8s if the pod will be restarted by kip.