From 1e4707ee3e3efc48440f65782c7317744f5a8575 Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Thu, 9 May 2024 17:25:59 +0200 Subject: [PATCH] Fix static load balancer ip for Traefik --- kubenix-modules/traefik.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kubenix-modules/traefik.nix b/kubenix-modules/traefik.nix index 4ff26dc..f431de7 100644 --- a/kubenix-modules/traefik.nix +++ b/kubenix-modules/traefik.nix @@ -4,12 +4,12 @@ metadata.namespace = "kube-system"; # Override Traefik's service with a static load balancer IP. - # Create endpoint for HTTPS on port444. + # Create endpoint for HTTPS on port 444. # Allow external name services for esrom. spec.valuesContent = '' service: spec: - loadBalancerIP: "${myLib.globals.traefikIPv4}" + annotations: {"metallb.universe.tf/loadBalancerIPs":"${myLib.globals.traefikIPv4}"} ports: localsecure: port: 8444