QuestionQ57

VerifiedSection 5 - Troubleshoot and optimize the VMware Solution

An administrator is managing several Kubernetes clusters deployed through a Supervisor Namespace in a vSphere Kubernetes Service environment. A containerized API-gateway microservice has begun failing intermittently after a recent configuration update. Initial investigation shows that the pod is entering a CrashLoopBackOff state. The administrator must collect detailed runtime information directly from the pod, including both standard output (STDOUT) and standard error (STDERR) streams, to analyze the application's behavior before the crash.

Which command generates the required output?

Explanation

Container runtimes capture a containerized application's STDOUT and STDERR, and the kubelet makes those streams available through kubectl logs. For a restarted crashing container, kubectl logs --previous can retrieve logs from the preceding container instance.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!