Hi KK friends, in the mocks exam for CKA, you have used a lot the kubectl get event command to diagnostics. In mock 4 for example for this command : #kubectl get event --field-selector involvedObject.name=web-dp-cka06-trb-xxxx --sort-by=‘.lastTimestamp’ we are expected to see this answer :
Warning FailedPostStartHook pod/web-dp-cka06-trb-67dccb7487-2bjgf Exec lifecycle hook ([/bin -c echo ‘Test Page’ > /usr/local/apache2/htdocs/index.html]) for Container “web-container” in Pod “web-dp-cka06-trb-67dccb7487-2bjgf_default(4dd6565e-7f1a-4407-b3d9-ca595e6d4e95)” failed - error: rpc error: code = Unknown desc = failed to exec in container: failed to start exec “c980799567c8176db5931daa2fd56de09e84977ecd527a1d1f723a862604bd7c”: OCI runtime exec failed: exec failed: unable to start container process: exec: “/bin”: permission denied: unknown, message: “”
But I didn’t see all these details. I just saw :
Warning BackOff pod/web-dp-cka06-trb-67dccb7487-2bjgf Back-off restarting failed container web-container in pod web-dp-cka06-trb-67dccb7487-2bjgf_default(d43dd73d-37ca-4c72-a771-61a1fe583f6c)
This is not the only example. The Answer’s output to Kubectl get event generally has a more verbose output in the answers that I get when issue the command (copy/paste ok?) on the Mock CLI. So my question is how did you get that output? In my case, I didn’t see the difference on the output between Kubectl get event and kubectl describe commands. Maybe in previous versions the output was more verbose or something like. But now if both commands get the same results, what’s the point to use kubectl get events ? And if there are some details of the answers output that if I can’t see, turns the diagnostics of the problem a liitle harder. I Mean, as I didn’t see that /bin failure, it took more time to get there. Eventually I would, but it takes some time to do so. Could give any thoughts about this ? Tks.