Created
July 18, 2023 05:00
-
-
Save qlawmarq/1bb65e46228354512e00d21e99466bd3 to your computer and use it in GitHub Desktop.
Clone kubernetes(k8s) deployment
This file contains hidden or 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
# 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