fix(terraform): Use linked clones instead of full clones
Some checks failed
CD - Deploy Infrastructure / Terraform Validation (push) Successful in 19s
CD - Deploy Infrastructure / Deploy on pve1 (push) Failing after 7s
CD - Deploy Infrastructure / Deploy on pve2 (push) Failing after 8s
CD - Deploy Infrastructure / Deploy on pve3 (push) Failing after 7s
CD - Deploy Infrastructure / Validate K3s Cluster (push) Has been skipped
CD - Deploy Infrastructure / Deployment Notification (push) Failing after 1s
Some checks failed
CD - Deploy Infrastructure / Terraform Validation (push) Successful in 19s
CD - Deploy Infrastructure / Deploy on pve1 (push) Failing after 7s
CD - Deploy Infrastructure / Deploy on pve2 (push) Failing after 8s
CD - Deploy Infrastructure / Deploy on pve3 (push) Failing after 7s
CD - Deploy Infrastructure / Validate K3s Cluster (push) Has been skipped
CD - Deploy Infrastructure / Deployment Notification (push) Failing after 1s
LINSTOR has issues creating new resource definitions during full clone operations. Switching to linked clones (full_clone = false) should avoid this issue as it uses snapshots instead of creating new disk resources. Also removed replicate parameter as LINSTOR handles replication automatically through its resource groups.
This commit is contained in:
parent
a60a54f1e7
commit
3cc79b75dd
3 changed files with 13 additions and 15 deletions
|
|
@ -25,7 +25,7 @@ resource "proxmox_vm_qemu" "k3s_server_1" {
|
|||
name = "k3s-server-1"
|
||||
target_node = "acemagician"
|
||||
clone = var.ubuntu_template
|
||||
full_clone = true
|
||||
full_clone = false
|
||||
|
||||
cpu {
|
||||
cores = var.k3s_server_1_config.cores
|
||||
|
|
@ -46,12 +46,11 @@ resource "proxmox_vm_qemu" "k3s_server_1" {
|
|||
}
|
||||
|
||||
disk {
|
||||
slot = "scsi0"
|
||||
size = var.k3s_server_1_config.disk_size
|
||||
type = "disk"
|
||||
storage = var.storage_pool
|
||||
iothread = true
|
||||
replicate = true
|
||||
slot = "scsi0"
|
||||
size = var.k3s_server_1_config.disk_size
|
||||
type = "disk"
|
||||
storage = var.storage_pool
|
||||
iothread = true
|
||||
}
|
||||
|
||||
ipconfig0 = "ip=${var.k3s_server_1_config.ip},gw=${var.k3s_gateway}"
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ resource "proxmox_vm_qemu" "k3s_server_2" {
|
|||
name = "k3s-server-2"
|
||||
target_node = "elitedesk"
|
||||
clone = var.ubuntu_template
|
||||
full_clone = true
|
||||
full_clone = false
|
||||
|
||||
cpu {
|
||||
cores = var.k3s_server_2_config.cores
|
||||
|
|
@ -46,12 +46,11 @@ resource "proxmox_vm_qemu" "k3s_server_2" {
|
|||
}
|
||||
|
||||
disk {
|
||||
slot = "scsi0"
|
||||
size = var.k3s_server_2_config.disk_size
|
||||
type = "disk"
|
||||
storage = var.storage_pool
|
||||
iothread = true
|
||||
replicate = true
|
||||
slot = "scsi0"
|
||||
size = var.k3s_server_2_config.disk_size
|
||||
type = "disk"
|
||||
storage = var.storage_pool
|
||||
iothread = true
|
||||
}
|
||||
|
||||
ipconfig0 = "ip=${var.k3s_server_2_config.ip},gw=${var.k3s_gateway}"
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ resource "proxmox_vm_qemu" "etcd_witness" {
|
|||
name = "etcd-witness"
|
||||
target_node = "thinkpad"
|
||||
clone = var.ubuntu_template
|
||||
full_clone = true
|
||||
full_clone = false
|
||||
|
||||
cpu {
|
||||
cores = var.etcd_witness_config.cores
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue