Skip to content
This repository has been archived by the owner on Oct 26, 2020. It is now read-only.

Terraform manifests for deploying Flynn to GCE

Notifications You must be signed in to change notification settings

translifeline/flynn-terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Flynn-Terraform

Create a Flynn cluster using Terraform

This repository holds work-in-progress code for launching Flynn into Google Cloud using Terraform.

Prepare

  • Be sure you have the Google Cloud SDK gcloud CLI configured
  • Define the number of Flynn hosts desired in terraform.tfvars
  • Get HashiCorp's Terraform 0.11.1
  • Install terraform-provider-flynn per its instructions. n.b.: requires golang >1.7
  • (Optional) Set other variables as desired in terraform.tfvars - variable names are discoverable in vars.tf

Use

  1. Navigate to ./clusters
cd clusters
  1. Copy template folder to a folder with your new cluster name and enter the folder:
cp template NEW-CLUSTER
cd NEW-CLUSTER
  1. Amend prefix = "NEW-CLUSTER" in backend.tf. test-cluster and other-cluster are examples
  2. Ensure settings in terraform.tfvars are correct for your cluster/project.
  3. Use the "zone" from Google Cloud DNS in the flynn_gce_zone variable
  4. Use the "name" from Google Cloud DNS in the flynn_gce_name variable.
  • Be sure to omit the trailing dot.
  1. Initialize Terraform modules and storage: terraform init
terraform init
  1. Generate a plan
terraform plan -out plan.tfplan
  1. Visually verify plan
  2. Execute the plan using
terraform apply plan.tfplan
  1. As needed, refresh the plan with another cycle of steps 2-5
  2. Delete the nodes by using
terraform destroy --force

Develop

  • We're using regular gitflow, so branch and pull request as normal.

Current Status

This will go from zero to fully-built Flynn cluster in about 5 minutes.

About

Terraform manifests for deploying Flynn to GCE

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published