From 4de2e96f4d358ad8169374ffc5d2d37b14215bf2 Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Thu, 15 Jan 2026 16:39:04 -0300 Subject: [PATCH] gitea: expose ssh via metallb shared IP --- infrastructure/traefik/traefik-service-lb.yaml | 1 + services/gitea/service.yaml | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/infrastructure/traefik/traefik-service-lb.yaml b/infrastructure/traefik/traefik-service-lb.yaml index 0280d9d9..839a55e8 100644 --- a/infrastructure/traefik/traefik-service-lb.yaml +++ b/infrastructure/traefik/traefik-service-lb.yaml @@ -6,6 +6,7 @@ metadata: namespace: traefik annotations: metallb.universe.tf/address-pool: communication-pool + metallb.universe.tf/allow-shared-ip: traefik spec: type: LoadBalancer loadBalancerClass: metallb diff --git a/services/gitea/service.yaml b/services/gitea/service.yaml index 5b4f8a01..66667bb8 100644 --- a/services/gitea/service.yaml +++ b/services/gitea/service.yaml @@ -21,12 +21,16 @@ kind: Service metadata: name: gitea-ssh namespace: gitea + annotations: + metallb.universe.tf/address-pool: communication-pool + metallb.universe.tf/allow-shared-ip: traefik spec: - type: NodePort + type: LoadBalancer + loadBalancerClass: metallb + loadBalancerIP: 192.168.22.9 selector: app: gitea ports: - name: ssh port: 2242 targetPort: 2242 - nodePort: 32242