Complete the command to view details of a pod named 'webapp'.
kubectl [1] webappThe kubectl describe command shows detailed information about a pod, including events and status.
Complete the command to view logs of a pod named 'backend'.
kubectl [1] backendThe kubectl logs command shows the logs of a pod, useful for debugging.
Fix the error in the command to follow logs of a pod named 'api-server'.
kubectl logs api-server [1]The -f flag makes kubectl logs follow the log output live.
Fill both blanks to get logs from the second container in a pod named 'multi-container-pod'.
kubectl logs multi-container-pod [1] [2]
Use -c or --container to specify which container's logs to view. Here, container-2 is the second container.
Fill all three blanks to get the last 100 lines of logs from container 'web' in pod 'frontend' in namespace 'prod'.
kubectl logs [1] [2] [3] --tail=100
The command specifies the pod name frontend, container web with -c, and namespace prod with -n. The --tail=100 shows last 100 lines.