Complete the command to show logs of a pod named 'webapp'.
kubectl logs [1]The command kubectl logs webapp shows the logs of the pod named 'webapp'.
Complete the command to follow logs of the pod 'backend' in real-time.
kubectl logs -f [1]-f flag to follow logs.The -f flag streams logs live. Use kubectl logs -f backend to follow logs of the 'backend' pod.
Fix the error in the command to get logs from the container 'api' inside pod 'service'.
kubectl logs [1] -c apiThe pod name must be specified before the -c container flag. Use kubectl logs service -c api.
Fill both blanks to get logs from the previous instance of pod 'worker' container 'job'.
kubectl logs [1] -c [2] --previous
--previous flag.Use kubectl logs worker -c job --previous to see logs from the previous container instance.
Fill all three blanks to get logs from all containers in pod 'app' and follow them live.
kubectl logs [1] [2] [3]
--all-containers=true flag.The command kubectl logs app -f --all-containers=true streams logs live from all containers in the 'app' pod.