Files
turnk8s/terraform/infrastructure/variables.tf
Armen Hakobian 8ecd7d3867 Sepseparated workflow for main (#18)
Separated workflow for main and other branches

1. From now on, the workflow defined in "pr_cluster_workflow.yaml" will be triggered on config.yaml changes. This can be used for PR testing.
2. Draft PRs are created when the source branch has logical modifications. Normal PRs are used for cluster management.
3.In the case of Draft PRs, which are for logical modifications, if a cluster is required, then the name of the cluster should adhere to the following convention "turnk8s-<PR_NUMBER>".
4. In the case of normal PRs, which are for cluster management, no cluster should be present in the config.yaml file matching the following cluster name regex turnk8s-.*
2024-07-16 18:12:43 +04:00

192 lines
4.5 KiB
HCL

variable "proxmox_ip" {
description = "IP of the Proxmox server"
type = string
default = "192.168.1.5"
}
variable "proxmox_token_id" {
description = "This is an API token you have previously created for a specific user."
type = string
sensitive = true
}
variable "proxmox_token_secret" {
description = "This uuid is only available when the token was initially created."
type = string
sensitive = true
}
variable "talos_version" {
description = "Talos version to be used"
type = string
default = "v1.7.1"
}
variable "k8s_version" {
description = "K8s version to be used"
type = string
default = "v1.30.0"
}
variable "image_registry" {
description = "The registry from which images should be downloaded for cluster"
type = string
default = "192.168.2.4:6000"
}
variable "github_token" {
description = "Git repository token"
type = string
}
variable "cluster_name" {
description = "The cluster name exists in config file."
type = string
default = "turnk8s-cluster"
}
variable "config_file_path" {
description = "The config.yaml file, where clusters are described."
type = string
default = "../../config.yaml"
}
variable "controlplane_cores" {
description = "The number of CPU cores per CPU socket to allocate to the VM."
type = number
default = 2
}
variable "controlplane_sockets" {
description = "The number of CPU sockets to allocate to the VM."
type = number
default = 1
}
variable "controlplane_cpu" {
description = "The type of CPU to emulate in the Guest."
type = string
default = "x86-64-v2-AES"
}
variable "controlplane_qemu_os" {
description = "The type of OS in the guest."
type = string
default = "l26"
}
variable "controlplane_scsihw" {
description = "The SCSI controller to emulate."
type = string
default = "virtio-scsi-single"
}
variable "controlplane_memory" {
description = "The amount of memory to allocate to the VM in Megabytes."
type = number
default = 4096
}
variable "controlplane_network_bridge" {
description = "Bridge to which the network device should be attached."
type = string
default = "vmbr1"
}
variable "controlplane_network_model" {
description = "Network Card Model"
type = string
default = "virtio"
}
variable "controlplane_network_firewall" {
description = "Whether to enable the Proxmox firewall on this network device."
type = bool
default = false
}
variable "controlplane_disk_storage" {
description = "The name of the storage pool on which to store the disk."
type = string
default = "local-lvm"
}
variable "controlplane_disk_size" {
description = "The size of the created disk in Gigabytes."
type = number
default = 32
}
# Node variables
variable "worker_nodes_count" {
description = "Count of the Worker Nodes."
type = number
default = 1
}
variable "worker_cores" {
description = "The number of CPU cores per CPU socket to allocate to the VM."
type = number
default = 2
}
variable "worker_sockets" {
description = "The number of CPU sockets to allocate to the VM."
type = number
default = 1
}
variable "worker_cpu" {
description = "The type of CPU to emulate in the Guest."
type = string
default = "x86-64-v2-AES"
}
variable "worker_qemu_os" {
description = "The type of OS in the guest."
type = string
default = "l26"
}
variable "worker_scsihw" {
description = "The SCSI controller to emulate."
type = string
default = "virtio-scsi-single"
}
variable "worker_memory" {
description = "The amount of memory to allocate to the VM in Megabytes."
type = number
default = 4096
}
variable "worker_network_bridge" {
description = "Bridge to which the network device should be attached."
type = string
default = "vmbr1"
}
variable "worker_network_model" {
description = "Network Card Model"
type = string
default = "virtio"
}
variable "worker_network_firewall" {
description = "Whether to enable the Proxmox firewall on this network device."
type = bool
default = false
}
variable "worker_disk_storage" {
description = "The name of the storage pool on which to store the disk."
type = string
default = "local-lvm"
}
variable "worker_disk_size" {
description = "The size of the created disk in Gigabytes."
type = number
default = 32
}