kubernetes get -o yaml

kubectl get <resource-type> <resource name> -o yaml

#Example:
kubectl get gateway my-app-gateway -o yaml
RicarHincapie