Files

50 lines
743 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: 22
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
namespace: git-ops
spec:
ports:
- port: 5432
targetPort: 5432
selector:
app: gitea-db
clusterIP: None