add port names
This commit is contained in:
@@ -12,20 +12,10 @@ spec:
|
|||||||
- port: 3011
|
- port: 3011
|
||||||
targetPort: 3000
|
targetPort: 3000
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
name: http
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: gitea-ssh-service
|
|
||||||
namespace: git-ops
|
|
||||||
spec:
|
|
||||||
type: LoadBalancer
|
|
||||||
selector:
|
|
||||||
app: gitea-app
|
|
||||||
ports:
|
|
||||||
- port: 222
|
- port: 222
|
||||||
targetPort: 22
|
targetPort: 22
|
||||||
|
name: ssh
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
|||||||
@@ -32,7 +32,9 @@ spec:
|
|||||||
image: gitea/gitea:1.24.6
|
image: gitea/gitea:1.24.6
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 22
|
- containerPort: 22
|
||||||
|
name: ssh
|
||||||
- containerPort: 3000
|
- containerPort: 3000
|
||||||
|
name: http
|
||||||
env:
|
env:
|
||||||
- name: USER_UID
|
- name: USER_UID
|
||||||
value: "1000"
|
value: "1000"
|
||||||
|
|||||||
Reference in New Issue
Block a user