K8s_Member:
Hi @Alistair Mackay, could you pls give me a favor?
I’ve found that there are number of ways to view events/ view logs. As a result, I would confuse when to use it. any order or tips for that?
journalctl -u ...crictl logs ..<container_id>k describe..k logs ..kubectl logs <podname> --previous- Any more??
I guest it depends on 2 things - Object running as service or pod
a. To view logs =journalctlif object running as operating system service.
b.kubectl logs:in case running as pod
i.kubectl logs <podname> --previousOnly view logs of a crashed/restarted
c.or crictl logs, ifkubectldoes not response/working. - Priority, Steps
a. Firstly, check status, events (By using k describe to viewState.Reason, LastState.Reason, Events)
b. After that, view logs.