Beginner Kubernetes
Q32 / 100

What is the purpose of "kubectl exec -it <pod> -- /bin/bash"?

Correct! Well done.

Incorrect.

The correct answer is B) To open an interactive bash shell inside a running container in the specified pod

B

Correct Answer

To open an interactive bash shell inside a running container in the specified pod

Explanation

Similar to "docker exec", "kubectl exec -it" lets you run a command (often a shell) interactively inside a container of a running pod for debugging.

Progress
32/100