This repository contains:
This example uses the terraform RKE provider - https://github.com/yamamoto-febc/terraform-provider-rke. To use this, you need to follow the installation instructions. Please note that it relies on a feature which has been merged but not released, so currently the best way to use this is to build terraform-provider-rke
on your system rather than download from a release.
Go into the rancher-server
directory
Run terraform
terraform init
terraform apply
Go into the user-cluster
directory
Run terraform
terraform init
terraform apply
Go to the install-app
directory
Run terraform
terraform init
terraform apply
If you don't work at rancher, you will probably need to modify some of this configuration. The aws
provider assumes you want to use a specific profile
for access to AWS. Feel free to modify this in rancher-server
and user-cluster
. We also sort of assume that you want a domain name for rancher-server
based on ${local.name}.${local.domain}
- you should probably change those as well. Finally, we are assuming that you use Route53 for your DNS. In rancher-server/infra.tf
we make a DNS record for your rancher server. If you do not use Route53, you should change this to reference whatever DNS provider you would like to use instead.