Why do we use a livenessprobe when the same can be achieved through ‘restartPolicy=Always’? Whenever we are using livenessprobe, what value should ‘restartPolicy’ set to?
Livenessprobe is to check the health check of the running apps within a pod for the specific container.
restartPolicy will restart the whole pod., no matter what how many container it has.
Liveness probe will restart only a specific container if its not healthy