Skip to content

dtherhtun/terraform-gcp-KTHW

Repository files navigation

Kubernetes Cluster On GCP With Terraform

  • Terraform v0.11.14
  • edit variables.tf
  • $terraform init
  • $terraform plan
  • $terraform apply

Fully automated infrastructure according to Kubernetes the hard way

you may need to read this for setup gcp credentials.

infra-design

Requirements

Name Version
google ~> 1.20

Providers

Name Version
google ~> 1.20

Inputs

Name Description Type Default Required
kube_api_port n/a string "6443" no
machines n/a map
{
"disk-size": 200,
"image": "ubuntu-1604-xenial-v20180814",
"img_project": "ubuntu-os-cloud",
"instance-type": "n1-standard-1"
}
no
network n/a map
{
"iprange": "10.240.0.0/24",
"name": "kubernetes",
"prefix": "10.240.0"
}
no
number_of_controller n/a number 3 no
number_of_worker n/a number 3 no
project n/a string "k8sops" no
region n/a string "us-central1" no
zones n/a list
[
"a",
"b",
"c"
]
no

Outputs

Name Description
addresses n/a
master_ip_list Master ip list
worker_ip_list worker ip list