mirror of
https://github.com/outbackdingo/homelab-v.git
synced 2026-08-25 14:53:19 +00:00
feat(tofu): actually update kubernetes when saying so
This commit is contained in:
@@ -54,14 +54,15 @@ data "talos_machine_configuration" "this" {
|
|||||||
machine_secrets = talos_machine_secrets.this.machine_secrets
|
machine_secrets = talos_machine_secrets.this.machine_secrets
|
||||||
config_patches = [
|
config_patches = [
|
||||||
templatefile("${path.module}/machine-config/common.yaml.tftpl", {
|
templatefile("${path.module}/machine-config/common.yaml.tftpl", {
|
||||||
node_name = each.value.host_node
|
node_name = each.value.host_node
|
||||||
cluster_name = var.cluster.proxmox_cluster
|
cluster_name = var.cluster.proxmox_cluster
|
||||||
hostname = each.key
|
kubernetes_version = var.cluster.kubernetes_version
|
||||||
ip = each.value.ip
|
hostname = each.key
|
||||||
|
ip = each.value.ip
|
||||||
mac_address = lower(each.value.mac_address)
|
mac_address = lower(each.value.mac_address)
|
||||||
gateway = var.cluster.gateway
|
gateway = var.cluster.gateway
|
||||||
subnet_mask = var.cluster.subnet_mask
|
subnet_mask = var.cluster.subnet_mask
|
||||||
vip = var.cluster.vip
|
vip = var.cluster.vip
|
||||||
}), each.value.machine_type == "controlplane" ?
|
}), each.value.machine_type == "controlplane" ?
|
||||||
templatefile("${path.module}/machine-config/control-plane.yaml.tftpl", {
|
templatefile("${path.module}/machine-config/control-plane.yaml.tftpl", {
|
||||||
kubelet = var.cluster.kubelet
|
kubelet = var.cluster.kubelet
|
||||||
|
|||||||
@@ -2,6 +2,8 @@ machine:
|
|||||||
nodeLabels:
|
nodeLabels:
|
||||||
topology.kubernetes.io/region: ${cluster_name}
|
topology.kubernetes.io/region: ${cluster_name}
|
||||||
topology.kubernetes.io/zone: ${node_name}
|
topology.kubernetes.io/zone: ${node_name}
|
||||||
|
kubelet:
|
||||||
|
image: ghcr.io/siderolabs/kubelet:${kubernetes_version}
|
||||||
network:
|
network:
|
||||||
hostname: ${hostname}
|
hostname: ${hostname}
|
||||||
interfaces:
|
interfaces:
|
||||||
@@ -30,3 +32,13 @@ machine:
|
|||||||
net.ipv4.tcp_wmem: 4096 65536 33554432 # 10Gb/s
|
net.ipv4.tcp_wmem: 4096 65536 33554432 # 10Gb/s
|
||||||
net.ipv4.tcp_window_scaling: 1 # 10Gb/s
|
net.ipv4.tcp_window_scaling: 1 # 10Gb/s
|
||||||
vm.nr_hugepages: 1024 # PostgreSQL
|
vm.nr_hugepages: 1024 # PostgreSQL
|
||||||
|
|
||||||
|
cluster:
|
||||||
|
apiServer:
|
||||||
|
image: registry.k8s.io/kube-apiserver:${kubernetes_version}
|
||||||
|
controllerManager:
|
||||||
|
image: registry.k8s.io/kube-controller-manager:${kubernetes_version}
|
||||||
|
proxy:
|
||||||
|
image: registry.k8s.io/kube-proxy:${kubernetes_version}
|
||||||
|
scheduler:
|
||||||
|
image: registry.k8s.io/kube-scheduler:${kubernetes_version}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ talos_cluster_config = {
|
|||||||
# Uncomment to use this instead of version from talos_image.
|
# Uncomment to use this instead of version from talos_image.
|
||||||
# talos_machine_config_version = "v1.9.2"
|
# talos_machine_config_version = "v1.9.2"
|
||||||
proxmox_cluster = "homelab"
|
proxmox_cluster = "homelab"
|
||||||
kubernetes_version = "1.32.3" # renovate: github-releases=kubernetes/kubernetes
|
kubernetes_version = "v1.32.3" # renovate: github-releases=kubernetes/kubernetes
|
||||||
cilium = {
|
cilium = {
|
||||||
bootstrap_manifest_path = "talos/inline-manifests/cilium-install.yaml"
|
bootstrap_manifest_path = "talos/inline-manifests/cilium-install.yaml"
|
||||||
values_file_path = "../../k8s/infra/network/cilium/values.yaml"
|
values_file_path = "../../k8s/infra/network/cilium/values.yaml"
|
||||||
|
|||||||
Reference in New Issue
Block a user