Skip to content

Latest commit

 

History

History
47 lines (37 loc) · 3.99 KB

Installing_Rancher_Server_In_AWS.adoc

File metadata and controls

47 lines (37 loc) · 3.99 KB

Setting up the VPC and supporting resources

  • Depending on the options chosen for the deployment, there may be the need for the AWS API access key and secret key for the AWS account used for the deployment

  • Deploy three instances based on the following considerations:

    • Identify the required instancy type according to CPU and RAM capacity guidance in the "RKE Install Requirements" tab of https://rancher.com/docs/rancher/v2.x/en/installation/requirements/#hardware-requirements

    • The Rancher server must be accessible from the Internet, thus the VPC to be used must have a configured Internet Gateway and all RKE nodes must have a publicly routable IP address

    • SLES nodes need to be an instance type of t2.medium or larger to get built-in subscriptions

      • Completing this deployment without a SLES subscription has not yet been attempted

    • For the SLES registation process to complete correctly, attach a public IP address to the primary NIC when creating the instances

      • After the nodes are booted up and ready, remove the public IP adresses, then allocate and attach Elastic IP addresses to them

  • Create two IAM policies for the control-plane RKE role and another for both etcd and worker RKE roles: https://rancher.com/docs/rke/latest/en/config-options/cloud-providers/aws/#iam-requirements

  • (Optional) Create an IAM policy to allow the RKE nodes to store etcd snapshots in S3: https://rancher.com/docs/rke/latest/en/etcd-snapshots/recurring-snapshots/

Note
This design maintains all three RKE roles (control-plane, etcd, and worker) on all three RKE node

Prepare the nodes

  • All nodes must have sshd_config configured with “AllowTcpForwarding yes”

    • Restart sshd after making the change

  • Make sure the primary user account on the nodes (which will be specified in the cluster.yml file) is in the docker group

  • The ssh key from the user and node that will run "rke up" need to be in the authorized_keys file

Create and configure the RKE cluster.yml file:

//// A very interesting quickstart guide using TF: https://rancher.com/docs/rancher/v2.x/en/quick-start-guide/deployment/amazon-aws-qs/ ////

Install Rancher: