Complete the command to check the status of all pods in the default namespace.
kubectl get [1]The command kubectl get pods lists all pods, which helps to see if they are running or have errors.
Complete the command to view detailed information about a pod named 'webapp'.
kubectl describe [1] webappkubectl describe pod webapp shows detailed info about the pod, including events and status, useful for troubleshooting.
Fix the error in the command to check logs of a pod named 'backend'.
kubectl logs [1] backendThe correct resource type for logs is pod. Using other types causes errors.
Fill both blanks to create a command that lists pods with their status in all namespaces.
kubectl get [1] --all-[2]
kubectl get pods --all-namespaces lists all pods across every namespace, showing their status for troubleshooting.
Fill all three blanks to create a command that filters pods with status 'CrashLoopBackOff' in the 'prod' namespace.
kubectl get [1] -n [2] | grep [3]
kubectl get pods -n prod | grep CrashLoopBackOff lists pods in the 'prod' namespace and filters those with 'CrashLoopBackOff' status, helping identify failing pods.