2017-06-27 06:55:39 +02:00
|
|
|
variable "cluster_name" {
|
|
|
|
type = "string"
|
|
|
|
description = "Cluster name"
|
|
|
|
}
|
|
|
|
|
2017-11-04 18:57:12 +01:00
|
|
|
variable "region" {
|
|
|
|
type = "string"
|
|
|
|
description = "Google Cloud Region (e.g. us-central1, see `gcloud compute regions list`)"
|
|
|
|
}
|
|
|
|
|
2017-08-13 22:02:52 +02:00
|
|
|
variable "dns_zone" {
|
2017-06-27 06:55:39 +02:00
|
|
|
type = "string"
|
2017-08-13 22:02:52 +02:00
|
|
|
description = "Google Cloud DNS Zone (e.g. google-cloud.dghubble.io)"
|
2017-06-27 06:55:39 +02:00
|
|
|
}
|
|
|
|
|
2017-08-13 22:02:52 +02:00
|
|
|
variable "dns_zone_name" {
|
2017-06-27 06:55:39 +02:00
|
|
|
type = "string"
|
2017-08-13 22:02:52 +02:00
|
|
|
description = "Google Cloud DNS Zone name (e.g. google-cloud-prod-zone)"
|
2017-06-27 06:55:39 +02:00
|
|
|
}
|
|
|
|
|
2017-08-13 22:02:52 +02:00
|
|
|
variable "ssh_authorized_key" {
|
2017-06-27 06:55:39 +02:00
|
|
|
type = "string"
|
2017-08-13 22:02:52 +02:00
|
|
|
description = "SSH public key for user 'core'"
|
2017-06-27 06:55:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "machine_type" {
|
|
|
|
type = "string"
|
|
|
|
default = "n1-standard-1"
|
2017-08-13 22:02:52 +02:00
|
|
|
description = "Machine type for compute instances (see `gcloud compute machine-types list`)"
|
2017-06-27 06:55:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "os_image" {
|
|
|
|
type = "string"
|
2017-08-13 22:02:52 +02:00
|
|
|
description = "OS image from which to initialize the disk (see `gcloud compute images list`)"
|
2017-06-27 06:55:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "controller_count" {
|
|
|
|
type = "string"
|
|
|
|
default = "1"
|
2017-07-29 20:35:53 +02:00
|
|
|
description = "Number of controllers"
|
2017-06-27 06:55:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "worker_count" {
|
|
|
|
type = "string"
|
|
|
|
default = "1"
|
|
|
|
description = "Number of workers"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "worker_preemptible" {
|
|
|
|
type = "string"
|
|
|
|
default = "false"
|
|
|
|
description = "If enabled, Compute Engine will terminate workers randomly within 24 hours"
|
|
|
|
}
|
|
|
|
|
|
|
|
# bootkube assets
|
|
|
|
|
|
|
|
variable "asset_dir" {
|
|
|
|
description = "Path to a directory where generated assets should be placed (contains secrets)"
|
|
|
|
type = "string"
|
|
|
|
}
|
|
|
|
|
2017-09-05 06:14:05 +02:00
|
|
|
variable "networking" {
|
|
|
|
description = "Choice of networking provider (flannel or calico)"
|
|
|
|
type = "string"
|
2017-09-12 18:16:58 +02:00
|
|
|
default = "calico"
|
2017-09-05 06:14:05 +02:00
|
|
|
}
|
|
|
|
|
2017-06-27 06:55:39 +02:00
|
|
|
variable "pod_cidr" {
|
|
|
|
description = "CIDR IP range to assign Kubernetes pods"
|
|
|
|
type = "string"
|
|
|
|
default = "10.2.0.0/16"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "service_cidr" {
|
|
|
|
description = <<EOD
|
|
|
|
CIDR IP range to assign Kubernetes services.
|
2017-11-06 07:43:30 +01:00
|
|
|
The 1st IP will be reserved for kube_apiserver, the 10th IP will be reserved for kube-dns.
|
2017-06-27 06:55:39 +02:00
|
|
|
EOD
|
|
|
|
|
|
|
|
type = "string"
|
|
|
|
default = "10.3.0.0/16"
|
|
|
|
}
|
2017-12-09 22:36:59 +01:00
|
|
|
|
|
|
|
variable "cluster_domain_suffix" {
|
|
|
|
description = "Queries for domains with the suffix will be answered by kube-dns. Default is cluster.local (e.g. foo.default.svc.cluster.local) "
|
|
|
|
type = "string"
|
|
|
|
default = "cluster.local"
|
|
|
|
}
|