{"id":811,"date":"2018-11-30T19:57:01","date_gmt":"2018-11-30T19:57:01","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw93\/?p=811"},"modified":"2018-12-06T23:25:25","modified_gmt":"2018-12-06T23:25:25","slug":"deploying-rancher-from-the-aws-marketplace","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw93\/index.php\/2018\/11\/30\/deploying-rancher-from-the-aws-marketplace\/","title":{"rendered":"Deploying Rancher from the AWS Marketplace"},"content":{"rendered":"<p>&nbsp;<\/p>\n<h5>A Detailed Overview of Rancher&#8217;s Architecture<\/h5>\n<p>This newly-updated, in-depth guidebook provides a detailed overview of the features and functionality of the new Rancher: an open-source enterprise Kubernetes platform.<\/p>\n<p><a href=\"http:\/\/info.rancher.com\/rancher2-technical-architecture\" target=\"blank\">Get the eBook<\/a><\/p>\n<h2>A step-by-step guide<\/h2>\n<p>Rancher is now available for easy deployment from the <a href=\"https:\/\/aws.amazon.com\/marketplace\/pp\/B072PSBJB2?ref=vdr_rf\">Amazon Web<br \/>\nServices (AWS)<br \/>\nMarketplace<\/a>.<br \/>\nWhile Rancher has always been easy to install, availability in the<br \/>\nmarketplace makes installing Rancher faster and easier than ever. In<br \/>\nthe article below, I provide a step-by-step guide to deploying a working<br \/>\nRancher environment on AWS. The process involves two distinct parts:<\/p>\n<ul>\n<li>In part I I step through the process of installing a Rancher<br \/>\nmanagement node from the AWS Marketplace<\/li>\n<li>In **part II **I deploy a Kubernetes cluster in AWS using the<br \/>\nRancher management node deployed in part I<\/li>\n<\/ul>\n<p>From my own experience, it is often small details missed that can lead<br \/>\nto trouble. In this guide I attempt to point out some potential pitfalls<br \/>\nto help ensure a smooth installation.<\/p>\n<h2>Before you get started<\/h2>\n<p>If you\u2019re a regular AWS user you\u2019ll find this process straightforward.<br \/>\nBefore you get started you\u2019ll need:<\/p>\n<ul>\n<li>An Amazon EC2 account \u2013 If you don\u2019t already have an account,<br \/>\nyou can visit AWS EC2 (<a href=\"https:\/\/aws.amazon.com\/ec2\/\">https:\/\/aws.amazon.com\/ec2\/<\/a>) and select<br \/>\nGet started with Amazon EC2 and follow the process there to<br \/>\ncreate a new account.<\/li>\n<li>An AWS Keypair \u2013 If you\u2019re not familiar with Key Pairs, you can<br \/>\nsave yourself a little grief by familiarizing yourself with the<br \/>\ntopic. You\u2019ll need a Key Pair to connect via ssh to the machine you<br \/>\ncreate on AWS. Although most users will probably never have a need<br \/>\nto ssh to the management host, the installation process still<br \/>\nrequires that a Key Pair exist. From within the <em>Network &amp; Security<\/em><br \/>\nheading in your AWS account select Key Pairs. You can create a Key<br \/>\nPair, give it a name, and the AWS console will download a <em>PEM file<\/em><br \/>\n(a ASCII vase64 X.509 certificate) that you should keep on your<br \/>\nlocal machine. This will hold the RSA Private Key that you\u2019ll need<br \/>\nto access the machine via <em>ssh<\/em> or <em>scp<\/em>. It\u2019s important that you<br \/>\nsave the key file, because if you lose it, it can\u2019t be replaced and<br \/>\nyou\u2019ll need to create a new one. The marketplace installation<br \/>\nprocess for Rancher will assume you already have a Key Pair file.<br \/>\nYou can more read about Key Pairs in the <a href=\"https:\/\/docs.aws.amazon.com\/AWSEC2\/latest\/UserGuide\/ec2-key-pairs.html?icmpid=docs_ec2_console\">AWS on-line<br \/>\ndocumentation<\/a>.<\/li>\n<li>Setup AWS Identity and Access Management \u2013 If you\u2019re new to<br \/>\nAWS, this will seem a little tedious, but you\u2019ll want to create an<br \/>\nIAM users account at some point through the AWS console. You don\u2019t<br \/>\nneed to do this to install Rancher from the AWS Marketplace, but<br \/>\nyou\u2019ll need these credentials to use the Cloud Installer to add<br \/>\nextra hosts to your Rancher cluster as described in part II of this<br \/>\narticle. You can follow the <a href=\"http:\/\/docs.aws.amazon.com\/IAM\/latest\/UserGuide\/id_users_create.html#id_users_create_console\">instructions to Create your Identity<br \/>\nand Access Management<br \/>\nCredentials<\/a>.<\/li>\n<\/ul>\n<p>With these setup items out of the way, we\u2019re ready to get started.<\/p>\n<h2>Step 1: Select a Rancher offering from the marketplace<\/h2>\n<p>There are three different offerings in the Marketplace as shown below.<\/p>\n<ul>\n<li><a href=\"https:\/\/aws.amazon.com\/marketplace\/pp\/B072PSBJB2?ref=vdr_rf\">Rancher on<br \/>\nRancherOS<\/a><br \/>\n\u2013 This is the option we\u2019ll use in this example. This is a single<br \/>\ncontainer implementation of the Rancher environment running on<br \/>\nRancherOS, a lightweight Linux optimized for container environments<\/li>\n<li><a href=\"https:\/\/aws.amazon.com\/marketplace\/pp\/B01AB05EEA?ref=vdr_rf\">RancherOS \u2013<br \/>\nHVM<\/a>\u2013<br \/>\nThis marketplace offering installs the RancherOS micro Linux<br \/>\ndistribution only without the Rancher environment. You might use<br \/>\nthis as the basis to package your own containerized application on<br \/>\nRancherOS. HVM refers to the type of Linux AMI used \u2013 you can<br \/>\nlearn more about <a href=\"http:\/\/docs.aws.amazon.com\/AWSEC2\/latest\/UserGuide\/virtualization_types.html\">Linux AMI Virtualization Types<br \/>\nhere<\/a>.<\/li>\n<li><a href=\"https:\/\/aws.amazon.com\/marketplace\/pp\/B01AB05BFW?ref=vdr_rf\">RancherOS \u2013 HVM \u2013 ECS<br \/>\nEnabled<\/a><br \/>\n\u2013 This marketplace offering is a variant of the RancherOS offering<br \/>\nabove intended for use with Amazon\u2019s <a href=\"https:\/\/aws.amazon.com\/blogs\/aws\/cloud-container-management\/\">EC2 Container Service<br \/>\n(ECS)<\/a>.<\/li>\n<\/ul>\n<p>We\u2019ll select the first option \u2013 Rancher on RancherOS:<br \/>\n** <a href=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/18095022\/2_AWS_Marketplace_updated.png\"><img decoding=\"async\" src=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/18095022\/2_AWS_Marketplace_updated.png\" alt=\"\" \/><\/a>**<br \/>\nAfter you select Rancher on RancherOS you\u2019ll see additional<br \/>\ninformational including pricing details. There is no charge for the use<br \/>\nof the software itself, but you\u2019ll be charged for machine hours and<br \/>\nother fees like EBS magnetic volumes and data transfer at standard AWS<br \/>\nrates. Press Continue once you\u2019ve reviewed the details and the<br \/>\npricing.<br \/>\n<a href=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10121258\/3-Continue.png\"><img decoding=\"async\" src=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10121258\/3-Continue.png\" alt=\"\" \/><\/a><br \/>\n** ** Step2: Select an installation type and provide installation<br \/>\ndetails The next step is to select an installation method and provide<br \/>\nrequired settings that AWS will need to provision your machine running<br \/>\nRancher. There are three installation types:<\/p>\n<ol>\n<li>Click Launch \u2013 this is the fastest and easiest approach. Our<br \/>\nexample below assumes this method of installation.<\/li>\n<li>Manual Launch \u2013 this installation method will guide you through<br \/>\nthe process of installing Rancher OS using the EC2 Console, API<br \/>\nor CLI.<\/li>\n<li>Service Catalog \u2013 you can also copy versions of Rancher on<br \/>\nRancherOS to a Service Catalog specific to a region and assign users<br \/>\nand roles. You can learn more about AWS Service Catalogs<br \/>\n<a href=\"https:\/\/aws.amazon.com\/documentation\/servicecatalog\/\">here<\/a>.<\/li>\n<\/ol>\n<p>Select Click Launch and provides installation options as shown:<br \/>\n<a href=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10121346\/4-Launch-on-EC2.png\"><img decoding=\"async\" src=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10121346\/4-Launch-on-EC2.png\" alt=\"\" \/><\/a><\/p>\n<ul>\n<li>Version \u2013 select a version of Rancher to install. By default<br \/>\nthe latest is selected.<\/li>\n<li>Region \u2013 select the AWS region where you will deploy the<br \/>\nsoftware. You\u2019ll want to make a note of this because the AWS EC2<br \/>\ndashboard segments machines by Region (pull-down at the top right of<br \/>\nthe AWS EC2 dashboard). You will need to have the correct region<br \/>\nselected to see your machines. Also, as you add additional Rancher<br \/>\nhosts, you\u2019ll want to install them in the same Region, Availability<br \/>\nGroup and Subnet as the management host.<\/li>\n<li>EC2 Instance Type &#8211; t2.medium is the default (a machine with 4GB<br \/>\nof RAM and 2 virtual cores). This is inexpensive and OK for<br \/>\ntesting, but you\u2019ll want to use larger machines to actually run<br \/>\nworkloads.<\/li>\n<li>VPC Settings (Virtual Private Cloud) \u2013 You can specify a<br \/>\nvirtual private cloud and subnet or create your own. Accept the<br \/>\ndefault here unless you have reason to select a particular cloud.<\/li>\n<li>Security Group \u2013 If you have an appropriate Security Group<br \/>\nalready setup in the AWS console you can specify it here. Otherwise<br \/>\nthe installer will create one for you that ensures needed ports are<br \/>\nopen including port 22 (to allow ssh access to the host) and port<br \/>\n8080 (where the Rancher UI will be exposed).<\/li>\n<li>Key Pair \u2013 As mentioned at the outset, select a previously<br \/>\ncreated Key Pair for which you\u2019ve already saved the private key (the<br \/>\nX.509 PEM file). You will need this file in case you need to connect<br \/>\nto your provisioned VM using ssh or scp. To connect using ssh you<br \/>\nwould use a command like this: <em>ssh -i key-pair-name.pem<br \/>\n&lt;public-ip-address&gt;<\/em><\/li>\n<\/ul>\n<p>When you\u2019ve entered these values select \u201cLaunch with 1-click\u201c<br \/>\n<a href=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10121424\/5-launch-with-1-click.png\"><img decoding=\"async\" src=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10121424\/5-launch-with-1-click.png\" alt=\"\" \/><\/a><br \/>\nOnce you launch Rancher,you\u2019ll see the screen below confirming details<br \/>\nof your installation. You\u2019ll receive an e-mail as well. This will<br \/>\nprovide you with convenient links to:<\/p>\n<ul>\n<li>Your EC2 console \u2013 that you can visit anytime by visiting<br \/>\n<a href=\"http:\/\/aws.amazon.com\/ec2\">http:\/\/aws.amazon.com\/ec2<\/a><\/li>\n<li>Your Software page, that provides information about your various<br \/>\nAWS Marketplace subscriptions<\/li>\n<\/ul>\n<p><a href=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10121516\/6-thank-you-for-subsbscribing.png\"><img decoding=\"async\" src=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10121516\/6-thank-you-for-subsbscribing-1024x772.png\" alt=\"\" \/><\/a><\/p>\n<h2>Step 3: Watch as the machine is provisioned<\/h2>\n<p>From this point on, Rancher should install by itself. You can monitor<br \/>\nprogress by visiting the AWS EC2 Console. Visit<br \/>\n<a href=\"http:\/\/aws.amazon.com\">http:\/\/aws.amazon.com<\/a>, login with your AWS credentials, and select EC2<br \/>\nunder AWS services. You should see the new AWS <em>t2.medium<\/em> machine<br \/>\ninstance initializing as shown below. Note the pull-down in the top<br \/>\nright of \u201cNorth Virginia\u201d. This provides us with visibility to machines<br \/>\nin the US East region selected in the previous step.<br \/>\n<a href=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10121603\/7-what-as-machine-provisioned.png\"><img decoding=\"async\" src=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10121603\/7-what-as-machine-provisioned-1024x312.png\" alt=\"\" \/><\/a><\/p>\n<h2>Step 4: Connect to the Rancher UI<\/h2>\n<p>The Rancher machine will take a few minutes to provision, but once<br \/>\ncomplete, you should be able to connect to the external IP address for<br \/>\nthe host (shown in the EC2 console above) on port 8080. Your IP address<br \/>\nwill be different but in our case the Public IP address was<br \/>\n54.174.92.13, so we pointed a browser to the URL<br \/>\n<a href=\"http:\/\/54.174.92.13:8080\">http:\/\/54.174.92.13:8080<\/a>. It may take a few minutes for Rancher UI to<br \/>\nbecome available but you should see the screen below.<br \/>\n<a href=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10121652\/8-welcome-to-Rancher.png\"><img decoding=\"async\" src=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10121652\/8-welcome-to-Rancher-1024x478.png\" alt=\"\" \/><\/a><br \/>\nCongratulations! If you\u2019ve gotten this far you\u2019ve successfully<br \/>\ndeployed Rancher in the AWS cloud! ** **<\/p>\n<p>Having the Rancher UI up and running is nice, but there\u2019s not a lot you<br \/>\ncan do with Rancher until you have cluster nodes up and running. In<br \/>\nthis section I\u2019ll look at how to deploy a Kubernetes cluster using the<br \/>\nRancher management node that I deployed from the marketplace in Part I.<\/p>\n<h2>Step 1 \u2013 Setting up Access Control<\/h2>\n<p>You\u2019ll notice when the Rancher UI is first provisioned, there is no<br \/>\naccess control. This means that anyone can connect to the web<br \/>\ninterface. You\u2019ll be prompted with a warning indicating that you should<br \/>\nsetup Authentication before proceeding. Select Access Control under<br \/>\nthe ADMIN menu in the Rancher UI. Rancher exposes multiple<br \/>\nauthentication options as shown including the use of external Access<br \/>\nControl providers. DevOps teams will often store their projects in a<br \/>\nGitHub repository, so using GitHub for authentication is a popular<br \/>\nchoice. We\u2019ll use GitHub in this example. For details on using other<br \/>\nAccess Control methods, you can consult the <a href=\"http:\/\/rancher.com\/docs\/rancher\/v1.6\/en\/configuration\/access-control\/\">Rancher<br \/>\nDocumentation<\/a>.<br \/>\n<a href=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10121820\/9-GitHub-not-configured.png\"><img decoding=\"async\" src=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10121820\/9-GitHub-not-configured-1024x601.png\" alt=\"\" \/><\/a><br \/>\nGitHub users should follow the directions, and click on the link<br \/>\nprovided in the Rancher UI to setup an OAuth application in GitHub.<br \/>\nYou\u2019ll be prompted to provide your GitHub credentials. Once logged into<br \/>\nGitHub, you should see a screen listing any OAuth applications and<br \/>\ninviting you to Register a new application. We\u2019re going to setup<br \/>\nRancher for Authentication with Git Hub.<br \/>\n<a href=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10121857\/10.-No-Oauth-applications.png\"><img decoding=\"async\" src=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10121857\/10.-No-Oauth-applications-1024x244.png\" alt=\"\" \/><\/a><br \/>\nClick the Register a new application button in Git Hub, and<br \/>\nprovide details about your Rancher installation on AWS. You\u2019ll need the<br \/>\nPublic IP address or fully qualified host name for your Rancher<br \/>\nmanagement host.<br \/>\n<a href=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10121930\/11.-Register-new-Oauth-application.png\"><img decoding=\"async\" src=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10121930\/11.-Register-new-Oauth-application-1024x562.png\" alt=\"\" \/><\/a><br \/>\nOnce you\u2019ve supplied details about the Rancher application to Git Hub<br \/>\nand clicked Register application, Git Hub will provide you with a<br \/>\nClient ID and a Client Secret for the Rancher application as<br \/>\nshown below.<br \/>\n<a href=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10122010\/12.-My-Rancher-instance..png\"><img decoding=\"async\" src=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10122010\/12.-My-Rancher-instance.-1024x507.png\" alt=\"\" \/><\/a><br \/>\nCopy and paste the Client ID and the Client Secret that appears in Git<br \/>\nHub into the Rancher Access Control setup screen, and save these values.<br \/>\n<a href=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10122045\/13.-Configure-Rancher.png\"><img decoding=\"async\" src=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10122045\/13.-Configure-Rancher-1024x279.png\" alt=\"\" \/><\/a><br \/>\nOnce these values are saved, click Authorize to allow Git Hub<br \/>\nauthentication to be used with your Rancher instance.<br \/>\n<a href=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10122122\/14.-Authorize-Rancher-Instance.png\"><img decoding=\"async\" src=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10122122\/14.-Authorize-Rancher-Instance-1024x205.png\" alt=\"\" \/><\/a><br \/>\nIf you\u2019ve completed these steps successfully, you should see a message<br \/>\nthat Git Hub authentication has been setup. You can invite additional<br \/>\nGit Hub users or organizations to access your Rancher instance as shown<br \/>\nbelow.<br \/>\n<a href=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10122203\/15-Access-control.png\"><img decoding=\"async\" src=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10122203\/15-Access-control-1024x707.png\" alt=\"\" \/><\/a><\/p>\n<h2>Step 2 \u2013 Add a new Rancher environment<\/h2>\n<p>When Rancher is deployed, there is a single Default environment that<br \/>\nuses Rancher\u2019s native orchestration engine called Cattle. Since<br \/>\nwe\u2019re going to install a Rancher managed Kubernetes cluster, we\u2019ll need<br \/>\nto add a new environment for Kubernetes. Under the environment selection<br \/>\nmenu on the left labelled Default, select Add Environment.<br \/>\nProvide a name and description for the environment as shown, and select<br \/>\nKubernetes as the environment template. Selecting the Kubernetes<br \/>\nframework means that Kubernetes will be used for Orchestration, and<br \/>\nadditional Rancher frameworks will be used including Network Services,<br \/>\nHealthcheck Services and Rancher IPsec as the software-defined network<br \/>\nenvironment in Kubernetes.<br \/>\n<a href=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10122256\/16-Add-environment.png\"><img decoding=\"async\" src=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10122256\/16-Add-environment-1024x598.png\" alt=\"\" \/><\/a><br \/>\nOnce you add the new environment, Rancher will immediately begin trying<br \/>\nto setup a Kubernetes environment. Before Rancher can proceed however a<br \/>\nDocker host needs to be added.<br \/>\n<a href=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/15054603\/17-setting-up-Kubernetes.png\"><img decoding=\"async\" src=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/15054603\/17-setting-up-Kubernetes-1024x376.png\" alt=\"\" \/><\/a><\/p>\n<h2>Step 3 \u2013 Adding Kubernetes cluster hosts<\/h2>\n<p>To add a host in Rancher, click on Add a host on the warning message<br \/>\nthat appears at the top of the screen or select the Add Host option<br \/>\nunder the Infrastructure -&gt; Hosts menu. Rancher provides multiple<br \/>\nways to add hosts. You can add an existing Docker host on-premises or in<br \/>\nthe cloud, or you can automatically add hosts using a cloud-provider<br \/>\nspecific machine driver as shown below. Since our Rancher management<br \/>\nhost is running on Amazon EC2, we\u2019ll select the Amazon EC2 machine<br \/>\ndriver to auto-provision additional cluster hosts. You\u2019ll want to select<br \/>\nthe same AWS region where your Rancher management host resides and<br \/>\nyou\u2019ll need your AWS provided Access key and Secret key. If you<br \/>\ndon\u2019t have an AWS Access key and Secret key, the <a href=\"http:\/\/docs.aws.amazon.com\/general\/latest\/gr\/managing-aws-access-keys.html\">AWS<br \/>\ndocumentation<\/a><br \/>\nexplains how you can obtain one. You\u2019ll need to provide your AWS<br \/>\ncredentials to Rancher as shown so that it can provision machines on<br \/>\nyour behalf.<br \/>\n<a href=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10122346\/18-add-host.png\"><img decoding=\"async\" src=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10122346\/18-add-host-1024x640.png\" alt=\"\" \/><\/a><br \/>\nAfter you\u2019ve provided your AWS credentials, select the AWS Virtual<br \/>\nprivate cloud and subnet. We\u2019ve selected the same VPC where our Rancher<br \/>\nmanagement node was installed from the AWS marketplace.<br \/>\n<a href=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10122420\/19-availability-zone.png\"><img decoding=\"async\" src=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10122420\/19-availability-zone-1024x329.png\" alt=\"\" \/><\/a><br \/>\nSecurity groups in AWS EC2 express a set of inbound and outbound<br \/>\nsecurity rules. You can choose a security group already setup in your<br \/>\nAWS account, but it is easier to just let Rancher use the existing<br \/>\nrancher-machine group to ensure the network ports that Rancher needs<br \/>\nopen are configured appropriately.<br \/>\n<a href=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10122452\/20-security-group.png\"><img decoding=\"async\" src=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10122452\/20-security-group-1024x228.png\" alt=\"\" \/><\/a><br \/>\nAfter setting up the security group, you can set your instance options<br \/>\nfor the additional cluster nodes. You can add multiple hosts at a time.<br \/>\nWe add five hosts in this example. We can give the hosts a name. We use<br \/>\nk8shost as our prefix, and Rancher will append a number to the<br \/>\nprefix naming our hosts k8shost1 through k8shost5. You can<br \/>\nselect the type of AWS host you\u2019d like for your Kubernetes cluster. For<br \/>\ntesting, a t2.medium instance is adequate (2 cores and 4GB of RAM)<br \/>\nhowever if you are running real workloads, a larger node would be<br \/>\nbetter. Accept the default 16GB root directory size. If you leave the<br \/>\nAMI blank, Rancher will provision the machine using an Ubuntu AMI. Note<br \/>\nthat the ssh username will be ubuntu for this machine type. You<br \/>\ncan leave the other settings alone in case you want to change the<br \/>\ndefaults.<br \/>\n<a href=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10122549\/21-instance-group.png\"><img decoding=\"async\" src=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10122549\/21-instance-group-1024x613.png\" alt=\"\" \/><\/a><br \/>\nOnce you click Create, Rancher will use your AWS credentials to<br \/>\nprovision the hosts using your selected options in your AWS cloud<br \/>\naccount. You can monitor the creation of the new hosts from the EC2<br \/>\ndashboard as shown.<br \/>\n<a href=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10122621\/22-EC2-dashboard.png\"><img decoding=\"async\" src=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10122621\/22-EC2-dashboard-1024x471.png\" alt=\"\" \/><\/a><br \/>\nProgress will also be shown from within Rancher. Rancher will<br \/>\nautomatically provision the AWS host, install the appropriate version of<br \/>\nDocker on the host, provide credentials, start a rancher Agent, and once<br \/>\nthe agent is present Rancher will orchestrate the installation of<br \/>\nKubernetes pulling the appropriate rancher components from the Docker<br \/>\nregistry to each cluster host.<br \/>\n<a href=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10122702\/23-setting-up-K8s.png\"><img decoding=\"async\" src=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10122702\/23-setting-up-K8s-1024x373.png\" alt=\"\" \/><\/a><br \/>\nYou can also monitor the step-by-step provisioning process by<br \/>\nselecting Hosts as shown below under the Infrastructure menu.<br \/>\nThis view shows our five node Kubernetes cluster at different stages of<br \/>\nprovisioning.<br \/>\n<a href=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10122734\/24-node-view-of-cluster.png\"><img decoding=\"async\" src=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10122734\/24-node-view-of-cluster-1024x777.png\" alt=\"\" \/><\/a><br \/>\nIt will take a few minutes before the environment is provisioned and up<br \/>\nand running, but when the dust settles, the Infrastructure Stacks<br \/>\nview should show that the Rancher stacks comprising the Kubernetes<br \/>\nenvironment are all up and running and healthy.<br \/>\n<a href=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10122819\/25-infrastructure-stacks.png\"><img decoding=\"async\" src=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10122819\/25-infrastructure-stacks-1024x584.png\" alt=\"\" \/><\/a><br \/>\nUnder the Kubernetes pull-down, you can launch a Kubernetes shell and<br \/>\nissue <em>kubectl<\/em> commands. Remember that Kubernetes has the notion of<br \/>\nnamespaces, so to see the Pods and Services used by Kubernetes itself,<br \/>\nyou\u2019ll need to query the <em>kube-system<\/em> namespace. This same screen also<br \/>\nprovides guidance for installing the kubectl CLI on your own local host.<br \/>\n<a href=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10122918\/27-Shell-Kubernetes.png\"><img decoding=\"async\" src=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10122918\/27-Shell-Kubernetes-1024x519.png\" alt=\"\" \/><\/a><br \/>\nRancher also provides access to the Kubernetes Dashboard following the<br \/>\nautomated installation under the Kubernetes pull-down.<br \/>\n<a href=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10122945\/28-Kubernetes-workloads.png\"><img decoding=\"async\" src=\"http:\/\/cdn.rancher.com\/wp-content\/uploads\/2017\/08\/10122945\/28-Kubernetes-workloads-1024x754.png\" alt=\"\" \/><\/a><br \/>\nCongratulations! If you\u2019ve gotten this far, give yourself a pat on the<br \/>\nback. You\u2019re now a Rancher on AWS expert!<\/p>\n<p><a href=\"https:\/\/rancher.com\/deploying-rancher-from-the-aws-marketplace\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; A Detailed Overview of Rancher&#8217;s Architecture This newly-updated, in-depth guidebook provides a detailed overview of the features and functionality of the new Rancher: an open-source enterprise Kubernetes platform. Get the eBook A step-by-step guide Rancher is now available for easy deployment from the Amazon Web Services (AWS) Marketplace. While Rancher has always been easy &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw93\/index.php\/2018\/11\/30\/deploying-rancher-from-the-aws-marketplace\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Deploying Rancher from the AWS Marketplace&#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-811","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\/811","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=811"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw93\/index.php\/wp-json\/wp\/v2\/posts\/811\/revisions"}],"predecessor-version":[{"id":852,"href":"https:\/\/www.appservgrid.com\/paw93\/index.php\/wp-json\/wp\/v2\/posts\/811\/revisions\/852"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw93\/index.php\/wp-json\/wp\/v2\/media?parent=811"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw93\/index.php\/wp-json\/wp\/v2\/categories?post=811"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw93\/index.php\/wp-json\/wp\/v2\/tags?post=811"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}