use LB instead of nodePort
This commit is contained in:
@@ -5,13 +5,12 @@ metadata:
|
||||
name: gitea-service
|
||||
namespace: default
|
||||
spec:
|
||||
type: NodePort
|
||||
type: LoadBalancer
|
||||
selector:
|
||||
app: gitea-app
|
||||
ports:
|
||||
- port: 3000
|
||||
- port: 3011
|
||||
targetPort: 3000
|
||||
nodePort: 3011
|
||||
protocol: TCP
|
||||
|
||||
---
|
||||
@@ -21,13 +20,12 @@ metadata:
|
||||
name: gitea-ssh-service
|
||||
namespace: default
|
||||
spec:
|
||||
type: NodePort
|
||||
type: LoadBalancer
|
||||
selector:
|
||||
app: gitea-app
|
||||
ports:
|
||||
- port: 22
|
||||
- port: 222
|
||||
targetPort: 22
|
||||
nodePort: 222
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
|
||||
Reference in New Issue
Block a user