2018-08-20 03:48:22 +02:00
|
|
|
variable "name" {
|
2019-05-28 06:43:08 +02:00
|
|
|
type = string
|
2018-08-20 03:48:22 +02:00
|
|
|
description = "Unique name for the worker pool"
|
|
|
|
}
|
|
|
|
|
|
|
|
# Azure
|
|
|
|
|
|
|
|
variable "region" {
|
2019-05-28 06:43:08 +02:00
|
|
|
type = string
|
2018-08-20 03:48:22 +02:00
|
|
|
description = "Must be set to the Azure Region of cluster"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "resource_group_name" {
|
2019-05-28 06:43:08 +02:00
|
|
|
type = string
|
2018-08-20 03:48:22 +02:00
|
|
|
description = "Must be set to the resource group name of cluster"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "subnet_id" {
|
2019-05-28 06:43:08 +02:00
|
|
|
type = string
|
2018-08-20 03:48:22 +02:00
|
|
|
description = "Must be set to the `worker_subnet_id` output by cluster"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "security_group_id" {
|
2019-05-28 06:43:08 +02:00
|
|
|
type = string
|
2018-08-20 03:48:22 +02:00
|
|
|
description = "Must be set to the `worker_security_group_id` output by cluster"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "backend_address_pool_id" {
|
2019-05-28 06:43:08 +02:00
|
|
|
type = string
|
2018-08-20 03:48:22 +02:00
|
|
|
description = "Must be set to the `worker_backend_address_pool_id` output by cluster"
|
|
|
|
}
|
|
|
|
|
|
|
|
# instances
|
|
|
|
|
2019-05-28 01:33:21 +02:00
|
|
|
variable "worker_count" {
|
2019-05-28 06:43:08 +02:00
|
|
|
type = string
|
2018-08-20 03:48:22 +02:00
|
|
|
default = "1"
|
|
|
|
description = "Number of instances"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "vm_type" {
|
2019-05-28 06:43:08 +02:00
|
|
|
type = string
|
2018-08-28 07:24:52 +02:00
|
|
|
default = "Standard_F1"
|
2018-08-20 03:48:22 +02:00
|
|
|
description = "Machine type for instances (see `az vm list-skus --location centralus`)"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "os_image" {
|
2019-05-28 06:43:08 +02:00
|
|
|
type = string
|
2018-08-20 03:48:22 +02:00
|
|
|
default = "coreos-stable"
|
|
|
|
description = "Channel for a Container Linux derivative (coreos-stable, coreos-beta, coreos-alpha)"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "priority" {
|
2019-05-28 06:43:08 +02:00
|
|
|
type = string
|
2018-08-20 03:48:22 +02:00
|
|
|
default = "Regular"
|
|
|
|
description = "Set priority to Low to use reduced cost surplus capacity, with the tradeoff that instances can be evicted at any time."
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "clc_snippets" {
|
2019-05-28 06:43:08 +02:00
|
|
|
type = list(string)
|
2018-08-20 03:48:22 +02:00
|
|
|
description = "Container Linux Config snippets"
|
|
|
|
default = []
|
|
|
|
}
|
|
|
|
|
|
|
|
# configuration
|
|
|
|
|
|
|
|
variable "kubeconfig" {
|
2019-05-28 06:43:08 +02:00
|
|
|
type = string
|
2018-08-20 03:48:22 +02:00
|
|
|
description = "Must be set to `kubeconfig` output by cluster"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "ssh_authorized_key" {
|
2019-05-28 06:43:08 +02:00
|
|
|
type = string
|
2018-08-20 03:48:22 +02:00
|
|
|
description = "SSH public key for user 'core'"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "service_cidr" {
|
|
|
|
description = <<EOD
|
|
|
|
CIDR IPv4 range to assign Kubernetes services.
|
|
|
|
The 1st IP will be reserved for kube_apiserver, the 10th IP will be reserved for coredns.
|
|
|
|
EOD
|
|
|
|
|
2019-05-28 06:43:08 +02:00
|
|
|
|
|
|
|
type = string
|
2018-08-20 03:48:22 +02:00
|
|
|
default = "10.3.0.0/16"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "cluster_domain_suffix" {
|
|
|
|
description = "Queries for domains with the suffix will be answered by coredns. Default is cluster.local (e.g. foo.default.svc.cluster.local) "
|
2019-05-28 06:43:08 +02:00
|
|
|
type = string
|
|
|
|
default = "cluster.local"
|
2018-08-20 03:48:22 +02:00
|
|
|
}
|
2019-05-28 06:43:08 +02:00
|
|
|
|