Skip to content
Snippets Groups Projects
Select Git revision
  • b9e5b0cb533684f82e8aee85b639f8edaac6a9de
  • master default protected
  • v2.27.1
  • v2.28.0
  • v2.27.0
  • v2.25.1
  • v2.24.3
  • v2.26.0
  • v2.24.2
  • v2.25.0
  • v2.24.1
  • v2.22.2
  • v2.23.3
  • v2.24.0
  • v2.23.2
  • v2.23.1
  • v2.23.0
  • v2.22.1
  • v2.22.0
  • v2.21.0
  • v2.20.0
  • v2.19.1
22 results

variables.tf

Blame
  • user avatar
    Ajarmar authored and GitHub committed
    * [upcloud] add option to use preconfigured cpu/mem plan
    
    * [upcloud] add option to use firewall rules for API server/SSH access
    
    * [upcloud] add option to use managed load balancer
    b9e5b0cb
    History
    variables.tf 2.10 KiB
    variable "prefix" {
      type    = string
      default = "kubespray"
    
      description = "Prefix that is used to distinguish these resources from others"
    }
    
    variable "zone" {
      description = "The zone where to run the cluster"
    }
    
    variable "template_name" {
      description = "Block describing the preconfigured operating system"
    }
    
    variable "username" {
      description = "The username to use for the nodes"
      default     = "ubuntu"
    }
    
    variable "private_network_cidr" {
      description = "CIDR to use for the private network"
      default     = "172.16.0.0/24"
    }
    
    variable "machines" {
      description = "Cluster machines"
    
      type = map(object({
        node_type = string
        plan      = string
        cpu       = string
        mem       = string
        disk_size = number
        additional_disks = map(object({
          size = number
          tier = string
        }))
      }))
    }
    
    variable "ssh_public_keys" {
      description = "List of public SSH keys which are injected into the VMs."
      type        = list(string)
    }
    
    variable "inventory_file" {
      description = "Where to store the generated inventory file"
    }
    
    variable "UPCLOUD_USERNAME" {
      description = "UpCloud username with API access"
    }
    
    variable "UPCLOUD_PASSWORD" {
      description = "Password for UpCloud API user"
    }
    
    variable "firewall_enabled" {
      description = "Enable firewall rules"
      default     = false
    }
    
    variable "master_allowed_remote_ips" {
      description = "List of IP start/end addresses allowed to access API of masters"
      type = list(object({
        start_address = string
        end_address   = string
      }))
      default = []
    }
    
    variable "k8s_allowed_remote_ips" {
      description = "List of IP start/end addresses allowed to SSH to hosts"
      type = list(object({
        start_address = string
        end_address   = string
      }))
      default = []
    }
    
    variable "loadbalancer_enabled" {
      description = "Enable load balancer"
      default     = false
    }
    
    variable "loadbalancer_plan" {
      description = "Load balancer plan (development/production-small)"
      default     = "development"
    }
    
    variable "loadbalancers" {
      description = "Load balancers"
    
      type = map(object({
        port            = number
        backend_servers = list(string)
      }))
      default = {}
    }