Illumina Innovates with Rancher and Kubernetes
The following steps will quickly deploy a Rancher Server on DigitalOcean with a single node cluster attached.
Note Deploying to DigitalOcean 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 DigitalOcean folder containing the terraform files by executing cd quickstart/do.
cd quickstart/do
Rename the terraform.tfvars.example file to terraform.tfvars.
terraform.tfvars.example
terraform.tfvars
Edit terraform.tfvars and customize the following variables:
do_token
rancher_server_admin_password
Optional: Modify optional variables within terraform.tfvars. See the Quickstart Readme and the DO Quickstart Readme for more information. Suggestions include:
do_region
prefix
droplet_size
s-2vcpu-4gb
s-4vcpu-8g
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: 15 added, 0 changed, 0 destroyed. Outputs: rancher_node_ip = xx.xx.xx.xx rancher_server_url = https://rancher.xx.xx.xx.xx.xip.io 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 DigitalOcean 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.