Configure Talos nodes for Longhorn storage
Add the Talos extension image and dedicated user volume configuration, point Longhorn at the mounted disk, and document rebuild and rolling-upgrade steps. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
apiVersion: v1alpha1
|
||||
kind: UserVolumeConfig
|
||||
name: longhorn
|
||||
provisioning:
|
||||
diskSelector:
|
||||
match: disk.dev_path == '/dev/vdb'
|
||||
maxSize: 10GiB
|
||||
grow: false
|
||||
+2
-1
@@ -54,7 +54,8 @@ data "talos_machine_configuration" "role" {
|
||||
yamlencode({
|
||||
machine = {
|
||||
install = {
|
||||
disk = var.install_disk
|
||||
disk = var.install_disk
|
||||
image = var.talos_installer_image
|
||||
}
|
||||
}
|
||||
cluster = {
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
customization:
|
||||
systemExtensions:
|
||||
officialExtensions:
|
||||
- siderolabs/iscsi-tools
|
||||
- siderolabs/util-linux-tools
|
||||
@@ -1,5 +1,6 @@
|
||||
cluster_name = "home-services"
|
||||
talos_version = "v1.14.0"
|
||||
talos_installer_image = "factory.talos.dev/metal-installer/613e1592b2da41ae5e265e8789429f22e121aab91cb4deb6bc3c0b6262961245:v1.14.0"
|
||||
kubernetes_version = "<supported-kubernetes-version>"
|
||||
cluster_endpoint = "https://<control-plane-vip>:6443"
|
||||
install_disk = "/dev/vda"
|
||||
|
||||
@@ -10,6 +10,12 @@ variable "talos_version" {
|
||||
default = "v1.14.0"
|
||||
}
|
||||
|
||||
variable "talos_installer_image" {
|
||||
type = string
|
||||
description = "Talos Image Factory installer image with iscsi-tools and util-linux-tools extensions. Keep its Talos version aligned with talos_version."
|
||||
default = "factory.talos.dev/metal-installer/613e1592b2da41ae5e265e8789429f22e121aab91cb4deb6bc3c0b6262961245:v1.14.0"
|
||||
}
|
||||
|
||||
variable "kubernetes_version" {
|
||||
type = string
|
||||
description = "Kubernetes version supported by the selected Talos version."
|
||||
|
||||
Reference in New Issue
Block a user