From f490d4abeff5cfe75d0a5838dc7f41d4cdd16dfe Mon Sep 17 00:00:00 2001 From: aggarwalakshun Date: Fri, 24 Oct 2025 18:18:45 +0530 Subject: [PATCH] add port names --- clusters/default/git-ops/gitea/gitea-svc.yml | 14 ++------------ clusters/default/git-ops/gitea/gitea.yml | 2 ++ 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/clusters/default/git-ops/gitea/gitea-svc.yml b/clusters/default/git-ops/gitea/gitea-svc.yml index 7782ebe..cc6a5ea 100644 --- a/clusters/default/git-ops/gitea/gitea-svc.yml +++ b/clusters/default/git-ops/gitea/gitea-svc.yml @@ -12,20 +12,10 @@ spec: - port: 3011 targetPort: 3000 protocol: TCP - ---- -apiVersion: v1 -kind: Service -metadata: - name: gitea-ssh-service - namespace: git-ops -spec: - type: LoadBalancer - selector: - app: gitea-app - ports: + name: http - port: 222 targetPort: 22 + name: ssh --- apiVersion: v1 diff --git a/clusters/default/git-ops/gitea/gitea.yml b/clusters/default/git-ops/gitea/gitea.yml index 3fa85da..8a95bb3 100644 --- a/clusters/default/git-ops/gitea/gitea.yml +++ b/clusters/default/git-ops/gitea/gitea.yml @@ -32,7 +32,9 @@ spec: image: gitea/gitea:1.24.6 ports: - containerPort: 22 + name: ssh - containerPort: 3000 + name: http env: - name: USER_UID value: "1000"