gitea: expose ssh via metallb shared IP

This commit is contained in:
Brad Stein 2026-01-15 16:39:04 -03:00
parent 66e7e6acc5
commit d90950b82e
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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