Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Terraform module for provisioning AWS resources to run a Kubernetes cluster

Notifications You must be signed in to change notification settings

weaveworks/terraform-kubernetes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-kubernetes

A terraform module for provisioning AWS resources (VMs, VPC, route table etc) for running a Kubernetes cluster. Builds a multi-master, multi-AZ cluster for Kubernetes.

NB this will not provision a functional Kubernetes cluster, just the VMs to run it on. We use this to provision the cluster behind Weave Cloud.

See "Provisioning and Lifecycle of a Production Ready Kubernetes Cluster" for more info.

You can parameterise the number of masters, minions and availability zones to use. Masters and minions will be round-robined across the availability zones. For more information see vars.tf.

To use:

$ echo >cluster.tf <<EOF
provider "aws" {
    access_key = "..."
    secret_key = "..."
    region = "..."
}

module "infra" {
    source = "github.com/weaveworks/terraform-kubernetes"

    cluster_name = "kubernetes_cluster"

    num_azs = 1
    num_minions = 1
	num_masters = 1

    key_pair_name = "test"
    elb_name = "test"
}
EOF
$ terraform get
$ terraform up

About

Terraform module for provisioning AWS resources to run a Kubernetes cluster

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages