Skip to content

Terraform Plans for deploying Rancher on Digital Ocean

License

Notifications You must be signed in to change notification settings

jaken1986/tf-rancher

 
 

Repository files navigation

Terraform Plans for deploying Rancher on Digital Ocean

This is a attempt to provide a 'single click' deployment of Rancher on Digital Ocean's IaaS. There is some modularity to it but the focus is on ease of use so we make some assumptions about the way it should work. It currently needs to create a new environment (called DigitalOcean) to add the DO Droplets to rather than using the Default environment that Rancher creates automatically.

Requirements

Usage

Deploy

make

Teardown

make teardown

Assumes you have the following terraform variables defined:

  • ssh_keys - Digtial Ocean SSH Key ID to set for the droplet. One way to get this ID is to use doctl like so: doctl compute ssh-key list | grep $keyname
  • digitalocean_token - Digital Ocean Auth Token for use by Terraform .
  • rancher_version_tag (optional) - Version of rancher to use (e.g. stable, latest)
  • orchestration (optional) - Orchestrator (e.g. cattle, kubernetes)

Additionally you can set the following Bash variables:

  • SLEEPTIME - interval to sleep between polling attempts while waiting for the server (first node) to become ready

Find the IP of the droplet/node named rancher-server-0 and go to http://<ipv4_address>:8080 to get to the Rancher UI. The rancher-nodes will be in the environment called DigitalOcean

About

Terraform Plans for deploying Rancher on Digital Ocean

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HCL 70.1%
  • Shell 28.0%
  • Makefile 1.9%