Ali Ilman
Ali Ilman

Ali Ilman

How to Extract the Definition of a Kubernetes Object to a YAML File

How to Extract the Definition of a Kubernetes Object to a YAML File

Ali Ilman's photo
Ali Ilman
·Aug 5, 2020·

1 min read

To extract the definition of an object into a YAML file, we can do the following.

kubectl get <object-type> <object-name> -o yaml > name-of-object-definition-file.yaml
 
Share this