Kubernetes keeps a separate log file for each container. The log files are usually stored in /var/log/containers on the node that runs the container. If the container is restarted, its logs are written to a new file. You can use the --previous option of kubectl logs to view the previously terminated containers in the same pod. When a pod is deleted, all its log files are deleted. If you want to keep the log files for debugging and reporting purposes, you’ll need a cluster-wide central logging system.