infra/infra/vultr-kubernetes/variables.tf
shockrah f2c4506245
Some checks failed
Ansible Linting / ansible-lint (push) Failing after 3s
Secops Linting and Safety Checks / checkov-scan-s3 (push) Failing after 14s
separating game and admin service node pools with pods and what not
2024-12-19 01:28:44 -08:00

72 lines
1.2 KiB
HCL

# API Keys required to reach AWS/Vultr
variable vultr_api_key {
type = string
sensitive = true
}
variable aws_key {
type = string
sensitive = true
}
variable aws_secret {
type = string
sensitive = true
}
variable aws_region {
type = string
sensitive = true
}
# Cluster configuration
variable cluster {
type = object({
region = string
label = string
version = string
pools = map(object({
plan = string
autoscale = bool
min = number
max = number
}))
})
}
variable game_servers {
type = object({
namespace = string
configs = map(object({
name = optional(string)
image = string
cpu = string
mem = string
port = object({
internal = number
expose = number
})
proto = optional(string)
}))
})
}
variable admin_services {
type = object({
namespace = string
configs = map(object({
name = string
image = string
cpu = string
mem = string
port = object({
notes = optional(string)
internal = number
expose = number
})
proto = optional(string)
}))
})
}