QuestionQ9

Ensuring solution and operations excellence

You run a cluster on Kubernetes Engine (GKE) that serves a web application. Users report that a particular part of the application no longer responds. You observe that every pod in your deployment restarts after 2 seconds. The application writes logs to standard output. You need to inspect the logs to determine the cause of the issue. Which approach can you use?

Explanation

GKE automatically collects workload logs written to standard output and standard error and makes them available in Cloud Logging as k8s_container logs. Reviewing the logs for the specific application container is therefore the appropriate way to diagnose an application component whose pods are repeatedly restarting.

Learn more

Community Discussion

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