Code Monkey home page Code Monkey logo

terraform-kubernetes's Introduction

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

terraform-kubernetes's People

Contributors

tomwilkie avatar philwinder avatar achanda avatar

Watchers

Mario IC avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.