Hi All, Would need small help from you . How can we get the list of pods histo . . .

GaneshBhat:
Hi All,

Would need small help from you .

How can we get the list of pods history?
Meaning , I wanted to list all those pods between one particular date.
Output should include deleted pods as well.

Or where can I see this. We are running OpenShift production grade cluster.

unnivkn:
I think you may have to look for your old container logs & events

unnivkn:
also if you have regular bkp’s, then you can restore alternate days bkp’s in to another cluster & verify your k8s objects. Not sure we do have any direct commands to find it.

Mohamed Ayman:
Regarding the deleted pods, you can’t get them since “-a” option is depreciated.

but you can get the list of recently deleted pod names up to 1 hour unless you change the ttl for k8s events by running $ kubectl get event -o custom-columns=NAME:.metadata.name | cut -d “.” -f1