feat: Enable k8s version tracking(renovate) / upgrades(tofu/shell)

Signed-off-by: Karteek <[email protected]>
This commit is contained in:
Karteek
2025-03-23 11:48:36 +01:00
committed by Vegard Hagen
parent 6e26baa532
commit 2e77f47aec
4 changed files with 5 additions and 0 deletions
+1
View File
@@ -24,6 +24,7 @@ module "talos" {
gateway = "192.168.1.1"
talos_version = "v1.8"
proxmox_cluster = "homelab"
kubernetes_version = "1.32.0" # renovate: github-releases=kubernetes/kubernetes
}
nodes = {
+1
View File
@@ -16,6 +16,7 @@ data "talos_machine_configuration" "this" {
talos_version = var.cluster.talos_version
machine_type = each.value.machine_type
machine_secrets = talos_machine_secrets.this.machine_secrets
kubernetes_version = var.cluster.kubernetes_version
config_patches = each.value.machine_type == "controlplane" ? [
templatefile("${path.module}/machine-config/control-plane.yaml.tftpl", {
hostname = each.key
+1
View File
@@ -20,6 +20,7 @@ variable "cluster" {
gateway = string
talos_version = string
proxmox_cluster = string
kubernetes_version = string
})
}
+2
View File
@@ -0,0 +1,2 @@
# Usage: sh upgrade-k8s.sh <controlplane node> or sh upgrade-k8s.sh <controlplane node> --dry-run (for a dry run)
talosctl $2 --nodes $1 upgrade-k8s --to 1.32.0 # renovate: github-releases=kubernetes/kubernetes