agent icon indicating copy to clipboard operation
agent copied to clipboard

Support kubectl logs --previous flag

Open soenkeliebau opened this issue 4 years ago • 1 comments

Kubectl logs has a flag which allows retrieving the logs for an earlier iteration of a pod.

We should also support this and retrieve logs from the previous systemd service that was run for the pod.

Question: would this work across pod boundaries? Not sure when a new invocation id is assigned, what happens when the service crashes and is restarted by systemd, vs the operator deletes the pod and the service is explicitly restarted due to this event?

soenkeliebau avatar May 27 '21 13:05 soenkeliebau

This is waiting for a new Krustlet release (not in 0.7.0).

lfrancke avatar Jun 09 '21 08:06 lfrancke