|
This is unreleased documentation for SUSE® Rancher Manager v2.15 (Unreleased). |
Setting up Nodes in Amazon EC2
In this tutorial, you will learn one way to set up Linux nodes for the Rancher management server. These nodes will fulfill the node requirements for OS, hardware, and networking.
If the Rancher server will be installed on a K3s Kubernetes cluster, you only need to provision two instances.
1. Optional Preparation
-
Create IAM role: To allow Rancher to manipulate AWS resources, such as provisioning new storage or new nodes, you will need to configure Amazon as a cloud provider. There are several things you’ll need to do to set up the cloud provider on EC2, but part of this process is setting up an IAM role for the Rancher server nodes. For the full details on setting up the cloud provider, refer to this page.
-
Create security group: We also recommend setting up a security group for the Rancher nodes that complies with the port requirements for Rancher nodes.
2. Provision Instances
-
Log into the Amazon AWS EC2 Console to get started. Make sure to take note of the Region where your EC2 instances (Linux nodes) are created, because all of the infrastructure for the Rancher management server should be in the same region.
-
In the left panel, click Instances.
-
Click Launch Instance.
-
In the section called Step 1: Choose an Amazon Machine Image (AMI), we will use Ubuntu 18.04 as the Linux OS, using
ami-0d1cd67c26f5fca19 (64-bit x86). Go to the Ubuntu AMI and click Select. -
In the Step 2: Choose an Instance Type section, select the
t2.mediumtype. -
Click Next: Configure Instance Details.
-
In the Number of instances field, enter the number of instances. A high-availability K3s cluster requires only two instances, while a high-availability RKE cluster requires three instances.
-
Optional: If you created an IAM role for Rancher to manipulate AWS resources, select the new IAM role in the IAM role field.
-
Click Next: Add Storage, Next: Add Tags, and Next: Configure Security Group.
-
In Step 6: Configure Security Group, select a security group that complies with the port requirements for Rancher nodes.
-
Click Review and Launch.
-
Click Launch.
-
Choose a new or existing key pair that you will use to connect to your instance later. If you are using an existing key pair, make sure you already have access to the private key.
-
Click Launch Instances.
Result: You have created Rancher nodes that satisfy the requirements for OS, hardware, and networking.