Skip to content

Instantly share code, notes, and snippets.

@arbarlow
Created February 12, 2018 22:08
Show Gist options
  • Save arbarlow/9a0c5e4a56696fa70881be4562bd4953 to your computer and use it in GitHub Desktop.
Save arbarlow/9a0c5e4a56696fa70881be4562bd4953 to your computer and use it in GitHub Desktop.
How to export k8s deployments for import into another cluster
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