deploy a highly available Rancher cluster with Terraform (backed with RDS)
Terraform files for deploying a Rancher HA cluster in AWS
Clone this repo:
git clone git@github.com:WesleyCharlesBlake/rancher-terraform.git
cd rancher-terraform
Edit the terraform.tfvars
file:
# AWS key for the instances
key_name = "rancher-example"
# RDS database password
db_pass = "rancherdbpass"
To create the cluster:
terraform apply
To destroy:
terraform destroy
us-east-1
)3
)rancher-ha
)ami-dfdff3c8
; RancherOS in us-east-1)t2.large
for RAM requirement)16
)192.168.199.0/24
)["192.168.199.0/26", "192.168.199.64/26", "192.168.199.128/26"
)["us-east-1a", "us-east-1b", "us-east-1d"]
)false
)Note: if you use an AMI other than RancherOS, the automatic launching of the Rancher server container will not work. You will need to update the user-data template according to the needs of your AMI.
rancher
)rancher
)false
)enable_https
is set to true
enable_https
is set to true
enable_https
is set to true
stable
)