fix(terraform): Configure cluster nodes and storage
Some checks failed
CD - Deploy Infrastructure / Terraform Validation (push) Successful in 17s
CD - Deploy Infrastructure / Deploy on pve1 (push) Failing after 1m4s
CD - Deploy Infrastructure / Deploy on pve2 (push) Failing after 2m26s
CD - Deploy Infrastructure / Deploy on pve3 (push) Failing after 1m47s
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 17s
CD - Deploy Infrastructure / Deploy on pve1 (push) Failing after 1m4s
CD - Deploy Infrastructure / Deploy on pve2 (push) Failing after 2m26s
CD - Deploy Infrastructure / Deploy on pve3 (push) Failing after 1m47s
CD - Deploy Infrastructure / Validate K3s Cluster (push) Has been skipped
CD - Deploy Infrastructure / Deployment Notification (push) Failing after 1s
This commit is contained in:
parent
5c235e86be
commit
42be2b3b6b
7 changed files with 61 additions and 37 deletions
|
|
@ -25,6 +25,7 @@ resource "proxmox_vm_qemu" "k3s_server_1" {
|
|||
name = "k3s-server-1"
|
||||
target_node = "acemagician"
|
||||
clone = var.ubuntu_template
|
||||
full_clone = true
|
||||
|
||||
cpu {
|
||||
cores = var.k3s_server_1_config.cores
|
||||
|
|
@ -48,7 +49,7 @@ resource "proxmox_vm_qemu" "k3s_server_1" {
|
|||
slot = "scsi0"
|
||||
size = var.k3s_server_1_config.disk_size
|
||||
type = "disk"
|
||||
storage = var.storage_pool
|
||||
storage = var.k3s_server_1_storage_pool
|
||||
iothread = true
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -53,6 +53,12 @@ variable "storage_pool" {
|
|||
type = string
|
||||
}
|
||||
|
||||
variable "k3s_server_1_storage_pool" {
|
||||
description = "Storage pool for k3s-server-1 disk (linstor_storage for HA)"
|
||||
type = string
|
||||
default = "linstor_storage"
|
||||
}
|
||||
|
||||
variable "snippets_storage" {
|
||||
description = "Proxmox storage for cloud-init snippets"
|
||||
type = string
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
@ -48,7 +49,7 @@ resource "proxmox_vm_qemu" "k3s_server_2" {
|
|||
slot = "scsi0"
|
||||
size = var.k3s_server_2_config.disk_size
|
||||
type = "disk"
|
||||
storage = var.storage_pool
|
||||
storage = var.k3s_server_2_storage_pool
|
||||
iothread = true
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -53,6 +53,12 @@ variable "storage_pool" {
|
|||
type = string
|
||||
}
|
||||
|
||||
variable "k3s_server_2_storage_pool" {
|
||||
description = "Storage pool for k3s-server-2 disk (linstor_storage for HA)"
|
||||
type = string
|
||||
default = "linstor_storage"
|
||||
}
|
||||
|
||||
variable "snippets_storage" {
|
||||
description = "Proxmox storage for cloud-init snippets"
|
||||
type = string
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ resource "proxmox_vm_qemu" "etcd_witness" {
|
|||
name = "etcd-witness"
|
||||
target_node = "thinkpad"
|
||||
clone = var.ubuntu_template
|
||||
full_clone = true
|
||||
|
||||
cpu {
|
||||
cores = var.etcd_witness_config.cores
|
||||
|
|
@ -48,7 +49,7 @@ resource "proxmox_vm_qemu" "etcd_witness" {
|
|||
slot = "scsi0"
|
||||
size = var.etcd_witness_config.disk_size
|
||||
type = "disk"
|
||||
storage = var.storage_pool
|
||||
storage = var.etcd_witness_storage_pool
|
||||
iothread = true
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -53,6 +53,12 @@ variable "storage_pool" {
|
|||
type = string
|
||||
}
|
||||
|
||||
variable "etcd_witness_storage_pool" {
|
||||
description = "Proxmox storage pool for etcd witness VM disk (thinkpad uses local storage)"
|
||||
type = string
|
||||
default = "local-lvm"
|
||||
}
|
||||
|
||||
variable "snippets_storage" {
|
||||
description = "Proxmox storage for cloud-init snippets"
|
||||
type = string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue