Kubernetes
Easy
Commands
What is the purpose of the 'kubectl exec' command?
Select your answer:
Show answer and explanation
Answer: To run a command in a container of a pod
Explanation
The 'kubectl exec' command allows you to execute a command inside a container of a running pod. This is useful for debugging, running administrative commands, or accessing a shell inside the container.
More easy Kubernetes questions
- After maintenance on a drained Kubernetes node, which command lets the scheduler place new pods on it again?
- Which kubectl command is used to view the logs of a pod?
- What is a Pod in Kubernetes?
- What is the purpose of a Kubernetes Service?
- Which command would you use to create a deployment from a YAML file?
- Which kubectl command would you use to get detailed information about a specific pod?