add port names

This commit is contained in:
2025-10-24 18:18:45 +05:30
parent 6fb5e93283
commit f490d4abef
2 changed files with 4 additions and 12 deletions

View File

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

View File

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