Backup All Openshift Template and Restore it to Another Openshift Instance

Previously i have to move a lot of Openshift template from one instance to another instance. So instead of copying a template one by one, why not just dump the whole template and import it to the new instance.

Below is the screenshot of source Openshift where we want to export the template from.

oc get -n openshift -o yaml --export templates > mytemplate.yaml

Below is the screenshot of the target Openshift,

oc apply -f mytemplate.yaml

This is the end result,

No Comments

Leave a Comment

Please be polite. We appreciate that.
Your email address will not be published and required fields are marked