2017-07-29 20:35:53 +02:00
|
|
|
variable "cluster_name" {
|
|
|
|
type = "string"
|
|
|
|
description = "Unique cluster name"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "region" {
|
|
|
|
type = "string"
|
|
|
|
description = "Digital Ocean region (e.g. nyc1, sfo2, fra1, tor1)"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "dns_zone" {
|
2017-08-13 03:25:05 +02:00
|
|
|
type = "string"
|
2017-08-23 07:56:52 +02:00
|
|
|
description = "Digital Ocean domain (i.e. DNS zone) (e.g. do.example.com)"
|
2017-07-29 20:35:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "image" {
|
|
|
|
type = "string"
|
2017-08-23 07:56:52 +02:00
|
|
|
default = "coreos-stable"
|
2017-07-29 20:35:53 +02:00
|
|
|
description = "OS image from which to initialize the disk (e.g. coreos-stable)"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "controller_count" {
|
|
|
|
type = "string"
|
|
|
|
default = "1"
|
|
|
|
description = "Number of controllers"
|
|
|
|
}
|
|
|
|
|
2017-08-23 07:56:52 +02:00
|
|
|
variable "controller_type" {
|
2017-08-13 03:25:05 +02:00
|
|
|
type = "string"
|
2017-08-23 07:56:52 +02:00
|
|
|
default = "2gb"
|
|
|
|
description = "Digital Ocean droplet size (e.g. 2gb (min), 4gb, 8gb)."
|
2017-07-29 20:35:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "worker_count" {
|
|
|
|
type = "string"
|
|
|
|
default = "1"
|
|
|
|
description = "Number of workers"
|
|
|
|
}
|
|
|
|
|
2017-08-23 07:56:52 +02:00
|
|
|
variable "worker_type" {
|
|
|
|
type = "string"
|
|
|
|
default = "512mb"
|
|
|
|
description = "Digital Ocean droplet size (e.g. 512mb, 1gb, 2gb, 4gb)"
|
|
|
|
}
|
|
|
|
|
2017-07-29 20:35:53 +02:00
|
|
|
variable "ssh_fingerprints" {
|
|
|
|
type = "list"
|
2017-08-13 22:02:52 +02:00
|
|
|
description = "SSH public key fingerprints. (e.g. see `ssh-add -l -E md5`)"
|
2017-07-29 20:35:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
# 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"
|
|
|
|
default = "flannel"
|
|
|
|
}
|
|
|
|
|
2017-07-29 20:35:53 +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-07-29 20:35:53 +02:00
|
|
|
EOD
|
|
|
|
|
|
|
|
type = "string"
|
|
|
|
default = "10.3.0.0/16"
|
|
|
|
}
|