{"id":390,"date":"2018-10-16T18:06:43","date_gmt":"2018-10-16T18:06:43","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw93\/?p=390"},"modified":"2018-10-17T09:09:14","modified_gmt":"2018-10-17T09:09:14","slug":"migrating-from-rancher-1-6-to-rancher-2-0-a-short-checklist","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw93\/index.php\/2018\/10\/16\/migrating-from-rancher-1-6-to-rancher-2-0-a-short-checklist\/","title":{"rendered":"Migrating from Rancher 1.6 to Rancher 2.0 &#8211; A Short Checklist"},"content":{"rendered":"<h5>How to Migrate from Rancher 1.6 to Rancher 2.1 Online Meetup<\/h5>\n<p>Key terminology differences, implementing key elements, and transforming Compose to YAML<\/p>\n<p><a href=\"https:\/\/rancher.com\/events\/2018\/2018-10-23-october-online-meetup-rancher1x-to-rancher2x\/\" target=\"blank\">Watch the video<\/a><\/p>\n<p>Rancher 1.6 is a widely used container orchestration platform that runs and manages Docker and Kubernetes in production. Cattle is the base orchestration engine for Rancher 1.6 that is being used by many opensource and enterprise setups.<\/p>\n<p>With the release of Rancher 2.0, we shifted from Cattle as the base orchestration platform to Kubernetes. As aptly noted <a href=\"https:\/\/rancher.com\/blog\/2018\/2018-05-01-rancher-ga-announcement-sheng-liang\/\">here<\/a>, Rancher 2.0 aims at helping users align with the <em>Kubernetes Everywhere<\/em> reality of the infrastructure and cloud domain.<\/p>\n<p>However Rancher 2.0 differs from Rancher 1.6 because it brings in a new orchestration technology, Kubernetes. Currently, there is no straightforward upgrade path available between these versions.<\/p>\n<p>So as a Rancher 1.6 user who\u2019s interested in moving to 2.0, what steps should you take?<\/p>\n<h2>Checklist for Migration<\/h2>\n<p>In this article, I will provide a short checklist you can follow to do the migration:<\/p>\n<h3>Installation<\/h3>\n<p>Instructions for a Rancher 2.0 installation can be found in the <a href=\"https:\/\/rancher.com\/docs\/rancher\/v2.x\/en\/installation\/\">Rancher Documentation<\/a>.<\/p>\n<p>Note that the Docker versions currently supported by Rancher 2.0 are:<\/p>\n<ul>\n<li>1.12.6<\/li>\n<li>1.13.1<\/li>\n<li>17.03.2<\/li>\n<\/ul>\n<p>This list is per the validated Docker versions found under <a href=\"https:\/\/github.com\/kubernetes\/kubernetes\/blob\/master\/CHANGELOG-1.10.md#external-dependencies\">External Dependencies<\/a> in the Kubernetes upstream release.<\/p>\n<p>For Kubernetes, Rancher currently uses the 1.10 version and is planning to go with the 1.11 version in the upcoming 2.0.7 release. Rancher will keep updating to the most-recent upstream Kubernetes releases.<\/p>\n<p>For a basic single node dev installation, you would provision a single Linux host with Docker and install Rancher within a Docker container using the familiar docker run command, just like the Rancher 1.6 installation.<\/p>\n<p>docker run -d &#8211;restart=unless-stopped<br \/>\n-p 80:80 -p 443:443<br \/>\nrancher\/rancher:latest<\/p>\n<p>For development environments, we recommend installing Rancher by running a single Docker container.<\/p>\n<p>One difference from the 1.6 version is that Rancher now requires you to use SSL for security, so you need to provide a certificate during installation. If you don\u2019t provide a certificate, Rancher will generate a self-signed certificate for you. For all the certificate options, see <a href=\"https:\/\/rancher.com\/docs\/rancher\/v2.x\/en\/installation\/single-node-install\/#2-choose-an-ssl-option-and-install-rancher\">here<\/a>.<\/p>\n<p>Installing a High Availability Rancher setup is a lot different compared to 1.6. The steps are outlined <a href=\"https:\/\/rancher.com\/docs\/rancher\/v2.x\/en\/installation\/ha-server-install\/\">here<\/a>.<\/p>\n<p>Note that any existing automation that you have around a 1.6 Rancher Server in HA mode will need to be redone for 2.0.<\/p>\n<h3>Configure Authentication<\/h3>\n<p>If you have set up authentication with Rancher 1.6, you will be familiar with the array of auth providers supported.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/VNm3tfv.png\" alt=\"Imgur\" \/><\/p>\n<p>With Rancher 2.0, all the above auth providers are still supported, and there are few new ones added to the set as well! Here is what the upcoming v2.0.7 authentication provider line up looks like:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/o6ZBN3K.png\" alt=\"Imgur\" \/><\/p>\n<p>The basic configuration requirements for setting up auth are still the same as 1.6. Look <a href=\"https:\/\/rancher.com\/docs\/rancher\/v2.x\/en\/admin-settings\/authentication\/\">here<\/a> for detailed documentation about configuring every auth provider.<\/p>\n<p>One difference to highlight is that in the Rancher 2.0 setup, local auth is always turned <em>on<\/em>, even if you configure any other auth mechanism. This setting enables the Rancher admins to have a guaranteed access to the setup always!<\/p>\n<h3>Add a Cluster and a Project<\/h3>\n<p>After you have a running Rancher installation with your choice of authentication enabled, the next thing to do is create a Cluster and a Project under which workloads can be deployed.<\/p>\n<p>In the Rancher 1.6 setup, after installation, you would create an <em>environment<\/em> to which compute nodes could be added. In Rancher 2.0, you need to create a cluster and add the compute nodes to the cluster.<\/p>\n<ul>\n<li><a href=\"https:\/\/rancher.com\/docs\/rancher\/v2.x\/en\/cluster-provisioning\/#what-s-a-kubernetes-cluster\">What is a Cluster?<\/a><\/li>\n<li><a href=\"https:\/\/rancher.com\/docs\/rancher\/v2.x\/en\/cluster-provisioning\/#cluster-creation-options\">How to Create a Cluster in Rancher 2.0?<\/a><\/li>\n<\/ul>\n<p>This is what the Cluster view looks like after it is setup. Within each cluster a Default project will be available.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/QQIj0An.png\" alt=\"Imgur\" \/><\/p>\n<p>The equivalent of a 1.6 Cattle environment is a 2.0 cluster with a project, for the following reasons:<\/p>\n<ul>\n<li>In 1.6 compute resources were assigned to an environment. Here in 2.0, you assign them to a cluster.<\/li>\n<li>In 1.6 users were added to the environment, where they could deploy services and share access to the hosts that belonged to that environment. In 2.0, users are added to projects and the workloads they deploy have access to the resources granted to the project.<\/li>\n<\/ul>\n<p>This model of a cluster and a project allows for multi-tenancy because hosts are owned by the cluster, and the cluster can be further divided into multiple projects where users can manage their apps.<\/p>\n<h3>Create Namespaces<\/h3>\n<p>After adding a cluster and a project, the next step is to define any <em>namespaces<\/em> used to group your application workloads. In Rancher 1.6, <em>stacks<\/em> were created to group together the services belonging to your application. In 2.0, you need to create <em>namespaces<\/em> for the same purpose. A default namespace will be available within the project, which is the namespace where workloads are deployed if one is not explicitly provided.<\/p>\n<p>Just like 1.6, Rancher 2.0 supports service discovery within and across namespaces.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/0FeHeth.png\" alt=\"Imgur\" \/><\/p>\n<h3>Migrate Apps<\/h3>\n<p>Once your Kubernetes cluster and a project are in place, the next step is to migrate the workloads.<\/p>\n<ul>\n<li>If you are a Rancher 1.6 user using Cattle environments, then you\u2019ll need to understand the changes in Rancher 2.0 around scheduling, load balancing, service discovery, service monitoring, and more while you migrate your workloads.\n<p>You can follow the <a href=\"https:\/\/rancher.com\/blog\/2018\/journey-from-cattle-to-k8s\/\">upcoming blog series<\/a> that talks about how you can do this migration using either the Rancher 2.0 UI or a conversion from Docker Compose config to Kubernetes YAML. It aims to explore various areas around workload deployment and their equivalent options available in Rancher 2.0.<\/li>\n<li>If you have been running your workloads in a Rancher 1.6 Kubernetes environment already, you can import the Kubernetes YAML specs directly into a Rancher 2.0 cluster using either the UI or <a href=\"https:\/\/rancher.com\/docs\/rancher\/v2.x\/en\/cli\/\">Rancher CLI<\/a>.<\/li>\n<\/ul>\n<p>Hope this migration checklist helps you get started!<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/rancher.com\/img\/bio\/prachi-damle.jpg\" alt=\"Prachi Damle\" width=\"100\" height=\"100\" \/><\/p>\n<p>Prachi Damle<\/p>\n<p>Principal Software Engineer<\/p>\n<p><a href=\"https:\/\/rancher.com\/blog\/2018\/2018-08-09-migrate-1dot6-setup-to-2dot0\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to Migrate from Rancher 1.6 to Rancher 2.1 Online Meetup Key terminology differences, implementing key elements, and transforming Compose to YAML Watch the video Rancher 1.6 is a widely used container orchestration platform that runs and manages Docker and Kubernetes in production. Cattle is the base orchestration engine for Rancher 1.6 that is being &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw93\/index.php\/2018\/10\/16\/migrating-from-rancher-1-6-to-rancher-2-0-a-short-checklist\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Migrating from Rancher 1.6 to Rancher 2.0 &#8211; A Short Checklist&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-390","post","type-post","status-publish","format-standard","hentry","category-kubernetes"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw93\/index.php\/wp-json\/wp\/v2\/posts\/390","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw93\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw93\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw93\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw93\/index.php\/wp-json\/wp\/v2\/comments?post=390"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw93\/index.php\/wp-json\/wp\/v2\/posts\/390\/revisions"}],"predecessor-version":[{"id":536,"href":"https:\/\/www.appservgrid.com\/paw93\/index.php\/wp-json\/wp\/v2\/posts\/390\/revisions\/536"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw93\/index.php\/wp-json\/wp\/v2\/media?parent=390"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw93\/index.php\/wp-json\/wp\/v2\/categories?post=390"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw93\/index.php\/wp-json\/wp\/v2\/tags?post=390"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}