- : You will require an account on DigitalOcean as this is where the server and cluster will run.
- DigitalOcean Access Key: Use this link to create a DigitalOcean Access Key if you don’t have one.
- : Used to provision the server and cluster to DigitalOcean.
Go into the DigitalOcean folder containing the terraform files by executing
cd quickstart/do
.Edit
terraform.tfvars
and customize the following variables:do_token
- DigitalOcean access keyrancher_server_admin_password
- Admin password for created Rancher server
Optional: Modify optional variables within . See the Quickstart Readme and the for more information. Suggestions include:
do_region
- DigitalOcean region, choose the closest instead of the defaultdroplet_size
- Droplet size used, minimum iss-2vcpu-4gb
buts-4vcpu-8gb
could be used if within budgetssh_key_file_name
- Use a specific SSH key instead of (public key is assumed to be${ssh_key_file_name}.pub
)
Run
terraform init
.Paste the
rancher_server_url
from the output above into the browser. Log in when prompted (default username isadmin
, use the password set inrancher_server_admin_password
).
Result
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 .
Wait for confirmation that all resources have been destroyed.