Closed Ramshield closed 7 months ago
This was with release version 0.3.2 of Terraform Talos module.
I tried version 0.4.0, this installs v1.6.0
, still not the version I specify, nor the Kubernetes version. Please advise.
I'm not sure if this is the intended flow, but I believe the resulting Talos version depends on the version of the installer image. You could try setting machine.install.image
to the version you need via a config patch.
If you've made modifications such as kernel arguments or system extensions like qemu-guest-agent
via Image Factory or other, I think setting machine.install.image
is required. This seems to line up with how step 3 of the docs are worded
Ensure that machine configuration field .machine.install.image points to the custom installer image.
You'd need to set .machine.install.image
otherwise it defaults to whatever talos api version the provider uses
Oh I see @UnstoppableMango and @frezbo , I totally missed that. Does anyone of you perhaps have an example on how to set this with Terraform (I assume with config patches? I can't find an example and I am terrible with Terraform.
Thank you!
yes, use a patch
data "talos_machine_configuration" "machineconfig_cp" {
cluster_name = var.cluster_name
cluster_endpoint = "https://10.0.0.9:8443"
machine_type = "controlplane"
machine_secrets = talos_machine_secrets.machine_secrets.machine_secrets
talos_version = "v1.6.6"
kubernetes_version = "v1.28.7"
config_patches = [
file("${path.module}/talos-patch.yaml")
]
}
Content of talos-patch.yaml:
---
machine:
install:
image: <INSTALLER URL FROM factory talos>
That did the trick!
Hi,
I am using the following Terraform code:
This boots Talos v1.6.6 but then uses the installer image of v1.5.0, without my BIOS parameters and without the qemu-guest-agent extension. If it doesn't matter if I set either
talos_version
intalos_machine_secrets
, ortalos_machine_configuration
. The result is the same, it always installs a default Talos v1.5.0 version.What am I missing? Thank you!