Ultimate access to all questions.
As part of a pilot project for implementing Kubernetes at your logistics startup, your team is experimenting with various Kubernetes YAML configurations for a test app. After executing the command kubectl get pods -l app=helloworld
, you notice one of the pods remains in a PENDING state. You're tasked with debugging the issue. What should you do?
Explanation:
Option A is incorrect because inspecting the service won't help as the failing resource is the pod. Option B is incorrect because the deployment won't display error messages; the pods will. Option C is correct because the failing pod will show warning or error messages indicating why it's failing. Option D is incorrect because logs won't be available for a failed container. For more information, refer to Google Cloud's troubleshooting guide and Kubernetes debugging documentation. Additionally, Cloud Logging offers real-time log management and analysis, providing insights into application and platform log data across various environments.