The restart count for a Pod increases whenever any of its containers is restarted. Therefore, the first step is to identify which container is being restarted: use `kubectl describe pod {name}`` to see which container has recently been restarting.
The reasons for restarts typically need to be determined by investigating logs, and there are several common causes:
The liveness probe of the container fails more than the threshold (usually 3 times), which requires checking whether the process is alive and examining relevant logs to troubleshoot the issue.
The container's process with PID 1 exits unexpectedly, such as when a killall
command is executed inside the container.
The logs which may help: