From 36779872aa1b65f976acec2a750f1351962fc759 Mon Sep 17 00:00:00 2001
From: xeruf <27jf@pm.me>
Date: Wed, 9 Nov 2022 12:42:31 +0000
Subject: [PATCH] code: add gitea hostPort

---
 basic/apps/code/gitea-values-configmap.yaml | 3 +++
 basic/config/kube-system/metallb-gitea.yaml | 3 ---
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/basic/apps/code/gitea-values-configmap.yaml b/basic/apps/code/gitea-values-configmap.yaml
index a45f9ff..2ae67cb 100644
--- a/basic/apps/code/gitea-values-configmap.yaml
+++ b/basic/apps/code/gitea-values-configmap.yaml
@@ -41,3 +41,6 @@ data:
       persistence:
         enabled: true
         existingClaim: gitea-postgres
+    service:
+      ssh:
+        hostPort: 22
diff --git a/basic/config/kube-system/metallb-gitea.yaml b/basic/config/kube-system/metallb-gitea.yaml
index f91f6bc..6bcbe80 100644
--- a/basic/config/kube-system/metallb-gitea.yaml
+++ b/basic/config/kube-system/metallb-gitea.yaml
@@ -5,9 +5,6 @@ apiVersion: v1
 kind: Service
 metadata:
   name: gitea-ssh
-  namespace: kube-system
-  annotations:
-    #metallb.universe.tf/allow-shared-ip: "key-to-share-1.2.3.4"
 spec:
   type: LoadBalancer
   loadBalancerIP: "${ip_address}"
-- 
GitLab