add lb for gitea
This commit is contained in:
@@ -30,3 +30,21 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
app: gitea-db
|
app: gitea-db
|
||||||
clusterIP: None
|
clusterIP: None
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: gitea-lb-service
|
||||||
|
namespace: git-ops
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: gitea-app
|
||||||
|
ports:
|
||||||
|
- port: 3000
|
||||||
|
targetPort: 3000
|
||||||
|
name: http
|
||||||
|
- port: 22
|
||||||
|
targetPort: 22
|
||||||
|
name: ssh
|
||||||
|
type: LoadBalancer
|
||||||
|
|||||||
Reference in New Issue
Block a user