feat: Add config for persistent storage
This commit is contained in:
parent
c10aded847
commit
c533c7c070
5 changed files with 13 additions and 2 deletions
|
|
@ -64,7 +64,7 @@ locals {
|
|||
cluster_name = local.cluster_name
|
||||
kubernetes_version = local.kubernetes_version
|
||||
ipv4_gateway = local.ipv4_gateway
|
||||
pvc_disks = [100]
|
||||
pvc_disks = [150]
|
||||
|
||||
nodes = [
|
||||
{
|
||||
|
|
@ -164,6 +164,7 @@ module "talos-bootstrap" {
|
|||
name = format("k8s-wheatley-%s", node.name)
|
||||
type = "worker"
|
||||
ipv4_address = node.ip_address
|
||||
pvc_disks = local.workers.pvc_disks
|
||||
}
|
||||
]
|
||||
)
|
||||
|
|
|
|||
|
|
@ -83,6 +83,7 @@ resource "talos_machine_configuration_apply" "config_apply_worker" {
|
|||
gateway-api_version = var.node_config.gateway_api_version
|
||||
cilium_version = var.node_config.cilium_version
|
||||
cilium_install_file = file("${path.module}/templates/cilium-install.yaml.tmpl")
|
||||
pvc_disks = each.value.pvc_disks
|
||||
})
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ machine:
|
|||
type: ${machine_type}
|
||||
install:
|
||||
disk: /dev/vda
|
||||
image: factory.talos.dev/nocloud-installer-secureboot/ce4c980550dd2ab1b17bbf2b08801c7eb59418eafe8f279833297925d67c7515:v${talos_version}
|
||||
image: factory.talos.dev/nocloud-installer-secureboot/6adc7e7fba27948460e2231e5272e88b85159da3f3db980551976bf9898ff64b:v${talos_version}
|
||||
network:
|
||||
hostname: ${hostname}
|
||||
nameservers:
|
||||
|
|
@ -15,6 +15,13 @@ machine:
|
|||
extraConfig:
|
||||
imageGCHighThresholdPercent: 75
|
||||
imageGCLowThresholdPercent: 70
|
||||
kernel:
|
||||
modules:
|
||||
- name: drbd
|
||||
parameters:
|
||||
- usermode_helper=disabled
|
||||
- name: drbd_transport_tcp
|
||||
- name: dm_thin_pool
|
||||
nodeLabels:
|
||||
topology.kubernetes.io/region: ${cluster_name}
|
||||
topology.kubernetes.io/zone: ${node_name}
|
||||
|
|
|
|||
|
|
@ -20,5 +20,6 @@ variable "talos_nodes" {
|
|||
name = string
|
||||
type = string
|
||||
ipv4_address = string
|
||||
pvc_disks = optional(list(number)),
|
||||
}))
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
customization:
|
||||
systemExtensions:
|
||||
officialExtensions:
|
||||
- siderolabs/drbd
|
||||
- siderolabs/qemu-guest-agent
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue