How to list Kubernetes recently deleted pods?

后端 未结 8 896
隐瞒了意图╮
隐瞒了意图╮ 2020-12-14 14:35

Is there a way to get some details about Kubernetes pod that was deleted (stopped, replaced by new version).

I am investigating bug. I have logs with my pod name. Th

8条回答
  •  眼角桃花
    2020-12-14 15:22

    You can try kubectl logs --previous to list the logs of a previously stopped pod

    http://kubernetes.io/docs/user-guide/kubectl/kubectl_logs/

    You may also want to check out these debugging tips http://kubernetes.io/docs/user-guide/debugging-pods-and-replication-controllers/

提交回复
热议问题