@thomas.solbjor her er "import" av tofu fra ditt repo med justeringer for å tilpasse patterns her. Også minimalisert til å kun opprette cluster, ingen managed services som postgres etc. Ta en titt. Co-authored-by: Danijel Simeunovic <danijel.simeunovic@fortedigital.com> Reviewed-on: #15 Reviewed-by: Danijel Simeunovic <danijel.simeunovic@fortedigital.com> Co-authored-by: Ghost <> Co-committed-by: Ghost <>
45 lines
1.0 KiB
HCL
45 lines
1.0 KiB
HCL
# ─── Cluster ─────────────────────────────────────────────────────────
|
|
|
|
variable "prefix" {
|
|
description = "Prefix for resource names"
|
|
type = string
|
|
}
|
|
|
|
variable "cluster_name" {
|
|
description = "Name of the Kubernetes cluster"
|
|
type = string
|
|
default = "main"
|
|
}
|
|
|
|
variable "zone" {
|
|
description = "UpCloud zone"
|
|
type = string
|
|
}
|
|
|
|
variable "node_plan" {
|
|
description = "UpCloud server plan for worker nodes"
|
|
type = string
|
|
}
|
|
|
|
variable "node_count" {
|
|
description = "Number of worker nodes"
|
|
type = number
|
|
}
|
|
|
|
variable "network_cidr" {
|
|
description = "CIDR block for the private network"
|
|
type = string
|
|
default = "10.100.0.0/24"
|
|
}
|
|
|
|
variable "control_plane_ip_filter" {
|
|
description = "CIDRs allowed to access the K8s API"
|
|
type = list(string)
|
|
default = ["0.0.0.0/0"]
|
|
}
|
|
|
|
variable "tags" {
|
|
description = "Labels to apply to resources"
|
|
type = map(string)
|
|
}
|