Created
July 9, 2019 14:46
-
-
Save leafnode/0b186f1b6ec0d4c179b407fc8894062c to your computer and use it in GitHub Desktop.
Export deployed YAMLs from kubernetes back to files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
kubectl get deploy --namespace metrics prom-prometheus-server -o yaml --export > deploy.yml | |
kubectl get configmaps --namespace metrics prom-prometheus-server -o yaml --export > prom-prometheus-server-config-map.yml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment