![quick node clone quick node clone](https://leetcode.com/problems/find-a-corresponding-node-of-a-binary-tree-in-a-clone-of-that-tree/Figures/1379/traversals.png)
Save the file as cluster-template.yml (or any other name, as long as it has a. Step Result: The YAML for a cloned cluster prints to Terminal.Ĭopy the YAML to your clipboard and paste it in a new file. From this point on, we’ll refer to the resource ID or NAME as, which is used as a placeholder in the next step.Įnter the following command to export the configuration for your cluster./rancher clusters export Open Terminal and change your directory to the location of the Rancher CLI binary, rancher.Įnter the following command to list the clusters managed by Rancher./rancher cluster lsįind the cluster that you want to clone, and copy either its resource ID or NAME to your clipboard. Export Cluster Configīegin by using Rancher CLI to export the configuration for the cluster that you want to clone. Remember to create an API bearer token if necessary.
Quick node clone install#
Prerequisitesĭownload and install Rancher CLI. Editing other values may invalidate the config file, which will lead to cluster deployment failure. However, we recommend editing only values explicitly listed in this document, as cluster duplication is designed for simple cluster copying, not wide scale configuration changes. Warning: During the process of duplicating a cluster, you will edit a config file full of cluster settings. If you have a cluster in Rancher that you want to use as a template for creating similar clusters, you can use Rancher CLI to clone the cluster’s configuration, edit it, and then use it to quickly launch the cloned cluster.ĭuplication of registered clusters is not supported.