how to know reason of restart when a pod restarts kubernetes code example Example: restart a pod kubernetes kubectl rollout restart deployment [deployment_name]