Re:The Basics: Kubernetes, Mesosphere, and Docker Swarm
by shaklee3 on Thursday February 16, 2017 @01:00AM
(#13658038)
Isn't that what custom liveliness probes are for?
Re:The Basics: Kubernetes, Mesosphere, and Docker Swarm
by webo on Thursday February 16, 2017 @01:12AM
(#13658077)
No- liveness probe just restarts the pod if the check fails, doesn't kill it.
Re:The Basics: Kubernetes, Mesosphere, and Docker Swarm
by amouat on Thursday February 16, 2017 @05:34AM
(#13658899)
I think a failed liveness will restart the container, not the whole pod.
One common issue we have is the pod gets stuck in a restart loop (for whatever reason, including starvation of resources). k8s just keeps restarting it for days on that node, instead of simply rescheduling it after X restarts or some other condition.
https://github.com/kubernetes/kubernetes/issues/13385