Get Pods descending sorted from age

I’m not sure about just returning the latest one, but you should be able to get their timestamp and comparing yourself. There are 2 things you can use .metadata.creationTimestamp or .status.startTime.

Can see this and sort via kubectl:

  • kubectl get pods --sort-by=.metadata.creationTimestamp
  • kubectl get pods --sort-by=.status.startTime