Created
February 12, 2018 22:08
-
-
Save arbarlow/9a0c5e4a56696fa70881be4562bd4953 to your computer and use it in GitHub Desktop.
How to export k8s deployments for import into another cluster
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
kubectl get deployment -o json | jq 'del(.items[].status) | del(.items[].metadata.annotations)' > dpls.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment