From fea801982a9e8cccfdc05f1a2161a4b01c8acfa2 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Steenis Date: Fri, 12 Oct 2018 16:00:47 +0200 Subject: [PATCH] Add note on removing addons section when migrating from RKE --- .../migrating-from-rke-add-on/_index.md | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/content/rancher/v2.x/en/upgrades/upgrades/migrating-from-rke-add-on/_index.md b/content/rancher/v2.x/en/upgrades/upgrades/migrating-from-rke-add-on/_index.md index 0041f925b23..b3562e1a750 100644 --- a/content/rancher/v2.x/en/upgrades/upgrades/migrating-from-rke-add-on/_index.md +++ b/content/rancher/v2.x/en/upgrades/upgrades/migrating-from-rke-add-on/_index.md @@ -48,6 +48,40 @@ kubectl -n cattle-system delete clusterrolebinding cattle-crb kubectl -n cattle-system delete serviceaccount cattle-admin ``` +### Remove addons section from `rancher-cluster.yml` + +The addons section from `rancher-cluster.yml` contains all the resources needed to deploy Rancher using RKE. By switching to Helm, this part of the cluster configuration file is no longer needed. Open `rancher-cluster.yml` in your favorite text editor and remove the addons section: + +>**Important:** Make sure you only remove the addons section from the cluster configuration file. + +``` +nodes: + - address: # hostname or IP to access nodes + user: # root user (usually 'root') + role: [controlplane,etcd,worker] # K8s roles for node + ssh_key_path: # path to PEM file + - address: + user: + role: [controlplane,etcd,worker] + ssh_key_path: + - address: + user: + role: [controlplane,etcd,worker] + ssh_key_path: + +services: + etcd: + snapshot: true + creation: 6h + retention: 24h + +# Remove addons section from here til end of file +addons: |- + --- + ... +# End of file +``` + ### Follow Helm and Rancher install steps From here follow the standard install steps.