Illumina Innovates with Rancher and Kubernetes
The following steps will quickly deploy a Rancher Server 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 file 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 to include your DigitalOcean Access Key.
Optional: Edit terraform.tfvars to:
count_agent_all_nodes
admin
admin_password
Run terraform init.
terraform init
To initiate the creation of the environment, run terraform apply. Then wait for the following output:
terraform apply
Apply complete! Resources: 2 added, 0 changed, 0 destroyed. Outputs: rancher-url = [ https://xxx.xxx.xxx.xxx ]
Paste the rancher-url from the output above into the browser. Log in when prompted (default password is admin).
rancher-url
Result: Rancher Server and your Kubernetes cluster is installed on DigitalOcean.
Use Rancher to create a deployment. For more information, see Creating Deployments.
From the quickstart/do folder, execute terraform destroy --force.
quickstart/do
terraform destroy --force
Wait for confirmation that all resources have been destroyed.