
Ultimate access to all questions.
You’ve identified errors in the logs for a specific Deployment, pinpointing the issue to the Pod named 'ad-generator'. Your team cannot replicate the error in other environments and believes that accessing the container directly for a brief period would help diagnose the root cause. What action should they take to run commands inside the container?
A
Execute the command kubectl run ad-generator /bin/bash to initiate a shell session within the container.
B
Use the command kubectl exec -it -- /bin/bash to start a shell session on the container.
C
Initiate a shell session on the container by running kubectl exec -it ad-generator -- /bin/bash.
D
Launch a shell session on the container with the command kubectl run.