mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-05-27 19:22:57 +00:00
This is a new provisioning mechanism. Right now, it can provision clusters on: - Digital Ocean - Linode - Oracle Cloud - Scaleway Others should be relatively straightforward to add. Check the README in the prepare-tf subdirectory for details.
56 lines
811 B
HCL
56 lines
811 B
HCL
variable "cluster_name" {
|
|
type = string
|
|
default = "deployed-with-terraform"
|
|
}
|
|
|
|
variable "common_tags" {
|
|
type = list(string)
|
|
default = []
|
|
}
|
|
|
|
variable "node_size" {
|
|
type = string
|
|
default = "M"
|
|
}
|
|
|
|
variable "min_nodes_per_pool" {
|
|
type = number
|
|
default = 2
|
|
}
|
|
|
|
variable "max_nodes_per_pool" {
|
|
type = number
|
|
default = 5
|
|
}
|
|
|
|
# FIXME
|
|
variable "enable_arm_pool" {
|
|
type = bool
|
|
default = false
|
|
}
|
|
|
|
variable "node_types" {
|
|
type = map(string)
|
|
default = {
|
|
"S" = "DEV1-S"
|
|
"M" = "DEV1-M"
|
|
"L" = "DEV1-L"
|
|
}
|
|
}
|
|
|
|
locals {
|
|
node_type = var.node_types[var.node_size]
|
|
}
|
|
|
|
variable "cni" {
|
|
type = string
|
|
default = "cilium"
|
|
}
|
|
|
|
# See supported versions with:
|
|
# scw k8s version list -o json | jq -r .[].name
|
|
variable "k8s_version" {
|
|
type = string
|
|
default = "1.22.2"
|
|
}
|