menu
To get the yaml for a deployment (service, pod, secret, etc):

kubectl get deploy deploymentname -o yaml