How do you export an existing Kubernetes Deployment into a YAML or XML file?
Typically you import YAML files to create objects such as Deployments into a Kubernetes cluster. You can also list those objects using kubectl commands. But how can you export the details of a deployment (or other k8s objects) into a YAML or XML file? This would help with creating templates from existing objects, and also … Read more