add port names
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user