mirror of
https://github.com/outbackdingo/homelab-v.git
synced 2026-08-25 14:53:19 +00:00
feat: Enable k8s version tracking(renovate) / upgrades(tofu/shell)
Signed-off-by: Karteek <[email protected]>
This commit is contained in:
@@ -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 = {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -20,6 +20,7 @@ variable "cluster" {
|
||||
gateway = string
|
||||
talos_version = string
|
||||
proxmox_cluster = string
|
||||
kubernetes_version = string
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user