QuestionQ176Verified/Kubernetes FundamentalsCopy linkReport a problemAsk AstroTutorSave questionA Pod is stuck in the CrashLoopBackoff state. What is the correct way to troubleshoot this issue?AUse kubectl top pod to check CPU usage and then scale the Deployment to more replicas.BUse kubectl describe pod to review recent events and then kubectl logs to inspect container output.CUse kubectl get nodes to verify node capacity and then kubectl apply -f to restart the Pod.DUse kubectl exec -- bash to connect inside the container and then check system logs in /var/log/kubelet.log.Show AnswerAnswerExplanationCrashLoopBackOff reflects repeated container failures. kubectl describe pod exposes container state, restart information, and recent events, while kubectl logs provides the container output that commonly reveals the application, configuration, probe, or resource problem causing the crashes.Learn moreKubernetes Documentation: Pod LifecycleKubernetes Documentation: Debug PodsShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion