Skip to content

viceIII/terraform-aws-kubernetes

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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages