From 7cfa0e63751df51630ce1760c91db8a7b4bbade4 Mon Sep 17 00:00:00 2001 From: lucalise Date: Sat, 3 Jan 2026 01:52:42 -0800 Subject: [PATCH] feat(homelab): migrate kube subnet --- nix/homelab/helm/values/minecraft/router.yaml | 4 ++-- nix/homelab/kustomize/metallb/pool.yaml | 24 +------------------ nix/homelab/kustomize/traefik/config.yaml | 2 -- .../nodes/kube/hardware-configuration.nix | 2 +- 4 files changed, 4 insertions(+), 28 deletions(-) diff --git a/nix/homelab/helm/values/minecraft/router.yaml b/nix/homelab/helm/values/minecraft/router.yaml index 0b8f44d..acc6a80 100644 --- a/nix/homelab/helm/values/minecraft/router.yaml +++ b/nix/homelab/helm/values/minecraft/router.yaml @@ -8,9 +8,9 @@ resources: minecraftRouter: mappings: - - externalHostname: "mc-rocket.duckdns.org" + - externalHostname: "mc-rocket.privatedns.org" host: "minecraft-main" port: 25565 - - externalHostname: "mc-rocket-creative.duckdns.org" + - externalHostname: "mc-rocket-creative.privatedns.org" host: "minecraft-creative" port: 25565 diff --git a/nix/homelab/kustomize/metallb/pool.yaml b/nix/homelab/kustomize/metallb/pool.yaml index 3bd55b4..40280b6 100644 --- a/nix/homelab/kustomize/metallb/pool.yaml +++ b/nix/homelab/kustomize/metallb/pool.yaml @@ -5,17 +5,7 @@ metadata: namespace: metallb-system spec: addresses: - - 192.168.18.31-192.168.18.61 ---- -apiVersion: metallb.io/v1beta1 -kind: IPAddressPool -metadata: - name: rufus-pool - namespace: metallb-system -spec: - addresses: - - 192.168.27.10-192.168.27.30 - autoAssign: false + - 192.168.27.12-192.168.27.30 --- apiVersion: metallb.io/v1beta1 kind: L2Advertisement @@ -25,15 +15,3 @@ metadata: spec: ipAddressPools: - pool ---- -apiVersion: metallb.io/v1beta1 -kind: L2Advertisement -metadata: - name: rufus-advertisement - namespace: metallb-system -spec: - ipAddressPools: - - rufus-pool - nodeSelectors: - - matchLabels: - kubernetes.io/hostname: rufus diff --git a/nix/homelab/kustomize/traefik/config.yaml b/nix/homelab/kustomize/traefik/config.yaml index 47ff0a2..9ba3e2b 100644 --- a/nix/homelab/kustomize/traefik/config.yaml +++ b/nix/homelab/kustomize/traefik/config.yaml @@ -9,8 +9,6 @@ spec: kubernetes.io/hostname: rufus service: - annotations: - metallb.universe.tf/address-pool: rufus-pool spec: externalTrafficPolicy: Local diff --git a/nix/homelab/nodes/kube/hardware-configuration.nix b/nix/homelab/nodes/kube/hardware-configuration.nix index 4332c12..7fe95c3 100644 --- a/nix/homelab/nodes/kube/hardware-configuration.nix +++ b/nix/homelab/nodes/kube/hardware-configuration.nix @@ -8,7 +8,7 @@ [ (modulesPath + "/installer/scan/not-detected.nix") ]; - boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usb_storage" "sd_mod" ]; + boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usbhid" "usb_storage" "sd_mod" ]; boot.initrd.kernelModules = [ "dm-snapshot" ]; boot.kernelModules = [ "kvm-amd" ]; boot.extraModulePackages = [ ];