My pods sometimes appear that restarted automatically, but I don't have a liveness yet.
I read that it can be the lifecycle of the pod that when you don't specify a RestartPolicy, by default is Always and when a Container crash, it restart automatically.
But, I got confused because I thought that the liveness should do that. And as the lifecycle already do it, for what should I use the liveness probe? And as it is two different things, what is the difference between then?