Files
k3s/clusters/default/git-ops/gitea/gitea-svc.yml
aggarwalakshun 6f938d573c
All checks were successful
renovate / renovate (push) Successful in 7m34s
use shared-ip
2025-10-26 21:40:23 +05:30

50 lines
754 B
YAML

---
apiVersion: v1
kind: Service
metadata:
name: gitea-service
namespace: git-ops
annotations:
metallb.io/allow-shared-ip: "shared-ip-1"
spec:
loadBalancerIP: 192.168.1.230
type: LoadBalancer
selector:
app: gitea-app
ports:
- port: 3011
targetPort: 3000
protocol: TCP
name: http
- port: 222
targetPort: 22
name: ssh
---
apiVersion: v1
kind: Service
metadata:
name: gitea-int-service
namespace: git-ops
spec:
selector:
app: gitea-app
ports:
- protocol: TCP
port: 3000
targetPort: 3000
---
apiVersion: v1
kind: Service
metadata:
name: gitea-db-service
namespace: git-ops
spec:
selector:
app: gitea-db
ports:
- protocol: TCP
port: 5432
targetPort: 5432