# Which command would you use to get the YAML definition of a running pod named 'web-app'?

Kubernetes, Easy (Beginner), Commands. https://k8wiz.com/uquiz/which-command-would-you-use-to-get-the-yaml-definition-of-a-running-pod-named-web-app

- A. kubectl get pod web-app -o yaml
- B. kubectl describe pod web-app -o yaml
- C. kubectl export pod web-app
- D. kubectl yaml pod web-app

**Answer:** kubectl get pod web-app -o yaml

**Explanation:** The 'kubectl get pod web-app -o yaml' command retrieves the complete YAML definition of the running pod. This is useful for understanding the current state of the pod or for creating similar pods.
