Git Product home page Git Product logo

terraform-google-k8s-gce's Introduction

Kubernetes Cluster on GCE Terraform Module

Modular Kubernetes Cluster for GCE.

Usage

module "k8s" {
  source      = "/Users/disla/Projects/terraform-google-modules/terraform-google-k8s-gce"
  name        = "dev"
  network     = "k8s"
  region      = "${var.region}"
  zone        = "${var.zone}"
  k8s_version = "1.7.3"
  num_nodes   = "${var.num_nodes}"
}

Input variables

  • name (required): The name of the kubernetes cluster. Note that nodes names will be prefixed with k8s-.
  • k8s_version (optional): The version of kubernetes to use. See available versions using: apt-cache madison kubelet. Default is 1.7.3
  • cni_version (optional): The version of the kubernetes cni resources to install. See available versions using: apt-cache madison kubernetes-cni. Default is 0.5.1.
  • docker_version (optional): The version of Docker to install. See available versions using: apt-cache madison docker-ce. Default is 17.06.0
  • dashboard_version (optional): The version tag of the kubernetes dashboard, per the tags in the repo: https://github.com/kubernetes/dashboard. Default is v1.6.3.
  • compute_image (optional): The project/image to use on the master and nodes. Must be ubuntu or debian 8+ compatible. Default is ubuntu-os-cloud/ubuntu-1704.
  • network (optional): The network to deploy to. Default is default.
  • subnetwork (optional): The subnetwork to deploy to. Default is default.
  • region (optional): The region to create the cluster in. Default is us-central1
  • zone (optional): The zone to create the cluster in.. Default is us-central1-f.
  • access_config (optiona): The access config block for the instances. Set to [] to remove external IP. Default is [{}]
  • master_machine_type (optional): The machine tyoe for the master node. Default is n1-standard-4.
  • node_machine_type (optional): The machine tyoe for the nodes. Default is n1-standard-4.
  • num_nodes (optional): The number of nodes. Default is 3.
  • add_tags (optional): Additional list of tags to add to the nodes.
  • master_ip (optional): The internal IP of the master node. Note this must be in the CIDR range of the region and zone. Default is 10.128.0.10.
  • pod_cidr (optional): The CIDR for the pod network. The master will allocate a portion of this subnet for each node. Default is 10.40.0.0/14.
  • service_cidr (optional): The CIDR for the service network. Default is 10.25.240.0/20.
  • dns_ip (optional): The IP of the kube DNS service, must live within the service_cidr. Default is 10.25.240.10.
  • depends_id (optional): The ID of a resource that the instance group depends on. This is added as metadata tf_depends_id on each instance.

Output variables

  • master_ip: The internal address of the master.
  • depends_id: Id of the master managed instance group depends_id output variable used for intra-module dependency creation.

Resources created

terraform-google-k8s-gce's People

Contributors

danisla 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.