Get resource YAML

Kubernetes
kubectl get deployment/<name> -o yaml