Add modules/k8s-node/variables.tf
This commit is contained in:
parent
6de60586d6
commit
35119274ac
46
modules/k8s-node/variables.tf
Normal file
46
modules/k8s-node/variables.tf
Normal file
@ -0,0 +1,46 @@
|
||||
# K8s node module — variables
|
||||
|
||||
variable "name" {
|
||||
description = "VM name (e.g., k8s-master, k8s-worker-01)"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "vm_id" {
|
||||
description = "Proxmox VMID (300+ for K8s nodes)"
|
||||
type = number
|
||||
}
|
||||
|
||||
variable "ip_address" {
|
||||
description = "IP on vmbr0 NAT bridge (10.10.10.x)"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "cpu_cores" {
|
||||
description = "Number of CPU cores"
|
||||
type = number
|
||||
default = 4
|
||||
}
|
||||
|
||||
variable "ram_mb" {
|
||||
description = "RAM in MB"
|
||||
type = number
|
||||
default = 8192
|
||||
}
|
||||
|
||||
variable "disk_gb" {
|
||||
description = "Disk size in GB"
|
||||
type = number
|
||||
default = 60
|
||||
}
|
||||
|
||||
variable "ssh_public_key" {
|
||||
description = "SSH public key for control plane access"
|
||||
type = string
|
||||
default = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDO+Y8ns0RgUfR21POlIVsHD+Lp+x7cUBupqXsyMeVNZ claude@control-plane"
|
||||
}
|
||||
|
||||
variable "node_name" {
|
||||
description = "Proxmox node name"
|
||||
type = string
|
||||
default = "georgeops"
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user