variable "cluster_name" { type = string description = "Unique cluster name" } # bare-metal variable "matchbox_http_endpoint" { type = string description = "Matchbox HTTP read-only endpoint (e.g. http://matchbox.example.com:8080)" } variable "os_channel" { type = string description = "Channel for a Container Linux derivative (coreos-stable, coreos-beta, coreos-alpha, flatcar-stable, flatcar-beta, flatcar-alpha, flatcar-edge)" } variable "os_version" { type = string description = "Version for a Container Linux derivative to PXE and install (e.g. 2079.5.1)" } # machines # Terraform's crude "type system" does not properly support lists of maps so we do this. variable "controller_names" { type = list(string) description = "Ordered list of controller names (e.g. [node1])" } variable "controller_macs" { type = list(string) description = "Ordered list of controller identifying MAC addresses (e.g. [52:54:00:a1:9c:ae])" } variable "controller_domains" { type = list(string) description = "Ordered list of controller FQDNs (e.g. [node1.example.com])" } variable "worker_names" { type = list(string) description = "Ordered list of worker names (e.g. [node2, node3])" } variable "worker_macs" { type = list(string) description = "Ordered list of worker identifying MAC addresses (e.g. [52:54:00:b2:2f:86, 52:54:00:c3:61:77])" } variable "worker_domains" { type = list(string) description = "Ordered list of worker FQDNs (e.g. [node2.example.com, node3.example.com])" } variable "clc_snippets" { type = map(list(string)) description = "Map from machine names to lists of Container Linux Config snippets" default = {} } # configuration variable "k8s_domain_name" { type = string description = "Controller DNS name which resolves to a controller instance. Workers and kubeconfig's will communicate with this endpoint (e.g. cluster.example.com)" } variable "ssh_authorized_key" { type = string description = "SSH public key for user 'core'" } variable "asset_dir" { type = string description = "Absolute path to a directory where generated assets should be placed (contains secrets)" } variable "networking" { type = string description = "Choice of networking provider (flannel or calico)" default = "calico" } variable "network_mtu" { type = number description = "CNI interface MTU (applies to calico only)" default = 1480 } variable "network_ip_autodetection_method" { type = string description = "Method to autodetect the host IPv4 address (applies to calico only)" default = "first-found" } variable "pod_cidr" { type = string description = "CIDR IPv4 range to assign Kubernetes pods" default = "10.2.0.0/16" } variable "service_cidr" { type = string description = <