fix(terraform): Configure storage for LINSTOR cluster topology
Some checks failed
CD - Deploy Infrastructure / Terraform Validation (push) Failing after 5s
CD - Deploy Infrastructure / Deploy on pve1 (push) Has been skipped
CD - Deploy Infrastructure / Deploy on pve2 (push) Has been skipped
CD - Deploy Infrastructure / Deploy on pve3 (push) Has been skipped
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) Failing after 5s
CD - Deploy Infrastructure / Deploy on pve1 (push) Has been skipped
CD - Deploy Infrastructure / Deploy on pve2 (push) Has been skipped
CD - Deploy Infrastructure / Deploy on pve3 (push) Has been skipped
CD - Deploy Infrastructure / Validate K3s Cluster (push) Has been skipped
CD - Deploy Infrastructure / Deployment Notification (push) Failing after 1s
Storage configuration changes: - Add full_clone=true for better LINSTOR compatibility - Add replicate=1 to disk config for k3s servers on LINSTOR - Configure etcd-witness to use local-lvm storage on thinkpad - Add etcd_witness_storage_pool variable with local-lvm default Fixes: - etcd-witness now uses local storage since thinkpad is LINSTOR controller only - k3s-server-1 and k3s-server-2 use LINSTOR replicated storage on acemagician/elitedesk - Explicit replication flag helps LINSTOR create resources correctly
This commit is contained in:
parent
80d434069b
commit
2ccccc5ce1
5 changed files with 26 additions and 14 deletions
|
|
@ -25,6 +25,7 @@ resource "proxmox_vm_qemu" "k3s_server_2" {
|
|||
name = "k3s-server-2"
|
||||
target_node = "elitedesk"
|
||||
clone = var.ubuntu_template
|
||||
full_clone = true
|
||||
|
||||
cpu {
|
||||
cores = var.k3s_server_2_config.cores
|
||||
|
|
@ -50,6 +51,7 @@ resource "proxmox_vm_qemu" "k3s_server_2" {
|
|||
type = "disk"
|
||||
storage = var.storage_pool
|
||||
iothread = true
|
||||
replicate = 1
|
||||
}
|
||||
|
||||
ipconfig0 = "ip=${var.k3s_server_2_config.ip},gw=${var.k3s_gateway}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue