Last active
July 15, 2019 10:31
-
-
Save knil-sama/ff3f3c2f4541dd866810f0e9bc0adfe6 to your computer and use it in GitHub Desktop.
Create duplicated cronjob in the same namespace
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 cronjob <cronjob-name> -o json > /tmp/<cronjob-name>.json && sed -i 's/<cronjob-name>/<cronjob-name>-duplicate/' /tmp/<cronjob-name>.json && kubectl create -f /tmp/<cronjob-name>.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment