Skip to content

Terraform quickstarter for a Digitalocean Kubernetes cluster

License

Notifications You must be signed in to change notification settings

mijndert/tf-quickstart-do-kubernetes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wheel

Terraform quickstarter for a Digitalocean Kubernetes cluster

Usage

Prerequisites

Set environment variable

In order to access the Digitalocean API you need to set an environement variable in your shell.

export DIGITALOCEAN_ACCESS_TOKEN=<personal access token>

Get information from the Digitalocean API

In order to use the module you need to know the names of images and regions. The API provides all information:

curl -X GET --silent "https://api.digitalocean.com/v2/images?per_page=999" -H "Authorization: Bearer $DIGITALOCEAN_ACCESS_TOKEN" |jq '.'

Using the module

module "cluster" {
  source = "git::git@github.com:mijndert/wheel.git"
  cluster_name = "example"
  cluster_region = "fra1"
  node_size = "s-2vcpu-2gb"
  node_count = 3
}

Backlog

  • Add optional autoscaling
  • State management

About

Terraform quickstarter for a Digitalocean Kubernetes cluster

Topics

Resources

License

Stars

Watchers

Forks

Languages