Juan
Juan

Reputation: 2103

Retrieve kubernetes deploy yaml

I have deleted my deploy yaml (mistake). I need to know if kubernetes keep a copy of this file in the worker nodes. Can I get this file in any container of the worker nodes?.

Upvotes: 0

Views: 1610

Answers (1)

harkesh kumar
harkesh kumar

Reputation: 883

Inspect environment variables and Kubernetes deployment/service yaml

and support deployment name is hello then like you get yml change hello with deployment name

kubectl get deploy/hello -o yaml
kubectl get svc/hello -o yaml

Upvotes: 4

Related Questions