Kubernetes
Easy
Commands
Which kubectl command is used to view the logs of a pod?
Select your answer:
Show answer and explanation
Answer: kubectl logs <pod-name>
Explanation
The 'kubectl logs <pod-name>' command is used to view the logs of a specified pod. This is useful for debugging and monitoring applications running in pods.
More easy Kubernetes questions
- 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?
- What is a Kubernetes Namespace used for?
- What is the purpose of a ConfigMap in Kubernetes?