Illumina Innovates with Rancher and Kubernetes
The following steps will quickly deploy a Rancher Server on AWS with a single node cluster attached.
Note Deploying to Amazon AWS will incur charges.
Clone Rancher Quickstart to a folder using git clone https://github.com/rancher/quickstart.
git clone https://github.com/rancher/quickstart
Go into the AWS folder containing the terraform files by executing cd quickstart/aws.
cd quickstart/aws
Rename the terraform.tfvars.example file to terraform.tfvars.
terraform.tfvars.example
terraform.tfvars
Edit terraform.tfvars and customize the following variables:
aws_access_key
aws_secret_key
rancher_server_admin_password
Optional: Modify optional variables within terraform.tfvars. See the Quickstart Readme and the AWS Quickstart Readme for more information. Suggestions include:
aws_region
prefix
instance_type
t3a.medium
t3a.large
t3a.xlarge
ssh_key_file_name
~/.ssh/id_rsa
${ssh_key_file_name}.pub
Run terraform init.
terraform init
Install the RKE terraform provider, see installation instructions.
To initiate the creation of the environment, run terraform apply --auto-approve. Then wait for output similar to the following:
terraform apply --auto-approve
Apply complete! Resources: 16 added, 0 changed, 0 destroyed. Outputs: rancher_node_ip = xx.xx.xx.xx rancher_server_url = https://ec2-xx-xx-xx-xx.compute-1.amazonaws.com workload_node_ip = yy.yy.yy.yy
Paste the rancher_server_url from the output above into the browser. Log in when prompted (default username is admin, use the password set in rancher_server_admin_password).
rancher_server_url
admin
Two Kubernetes clusters are deployed into your AWS account, one running Rancher Server and the other ready for experimentation deployments.
Use Rancher to create a deployment. For more information, see Creating Deployments.
From the quickstart/aws folder, execute terraform destroy --auto-approve.
quickstart/aws
terraform destroy --auto-approve
Wait for confirmation that all resources have been destroyed.