Skip to content

Instantly share code, notes, and snippets.

@qlawmarq
Created July 18, 2023 05:00
Show Gist options
  • Save qlawmarq/1bb65e46228354512e00d21e99466bd3 to your computer and use it in GitHub Desktop.
Save qlawmarq/1bb65e46228354512e00d21e99466bd3 to your computer and use it in GitHub Desktop.
Clone kubernetes(k8s) deployment
# The following is an example of a command to clone an development(ex-app-development) as an production(ex-app-production).
kubectl get deployment ex-app-development -o json \
| jq '.metadata.name = "ex-app-production"' \
| kubectl apply -f -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment