mirror of
https://github.com/0x1d/terraform-proxmox-talos.git
synced 2025-12-16 06:34:32 +01:00
add examples
This commit is contained in:
30
examples/simple/main.tf
Normal file
30
examples/simple/main.tf
Normal file
@@ -0,0 +1,30 @@
|
||||
module "talos_cluster" {
|
||||
source = "../../"
|
||||
cluster_name = "homelab"
|
||||
talos_version = "1.9.4"
|
||||
default_gateway = "192.168.1.1"
|
||||
proxmox_nodes = ["ms-01"]
|
||||
talos_controlplane_config = [{
|
||||
id = 101
|
||||
name = "talos-cp-01"
|
||||
ip = "192.168.1.181"
|
||||
node = "ms-01"
|
||||
cpu_cores = 2
|
||||
memory = 2048
|
||||
disk_size = 20
|
||||
}]
|
||||
talos_worker_config = [{
|
||||
id = 111
|
||||
name = "talos-worker-01"
|
||||
ip = "192.168.1.191"
|
||||
node = "ms-01"
|
||||
cpu_cores = 4
|
||||
memory = 4096
|
||||
disk_size = 100
|
||||
}]
|
||||
}
|
||||
|
||||
output "kubeconfig" {
|
||||
value = module.talos_cluster.kubeconfig
|
||||
sensitive = true
|
||||
}
|
||||
Reference in New Issue
Block a user