Complete the command to run a shell inside a pod named 'webapp'.
kubectl exec -it webapp -- [1]The kubectl exec command with -it lets you run an interactive shell like bash inside the pod.
Complete the command to execute 'env' inside the pod named 'backend'.
kubectl exec backend -- [1]The env command shows environment variables inside the container.
Fix the error in the command to run a shell in the pod 'db' interactively.
kubectl exec db [1] bashThe correct flags for interactive terminal are -it. It combines -i (interactive) and -t (tty).
Fill both blanks to run 'ls /var/log' inside the pod 'app' with interactive terminal.
kubectl exec [1] app -- [2] /var/log
Use -it for interactive terminal and ls to list files in /var/log.
Fill all three blanks to run a shell in the container named 'nginx' inside pod 'webserver'.
kubectl exec [1] webserver -c [2] -- [3]
Use -it for interactive terminal, specify container nginx with -c, and run bash shell.