feat: expose Gitea externally at git.georgepet.duckdns.org
Service+Endpoints pointing to 10.10.10.1:3000, Ingress with TLS. Phase 22: Git-based PaaS deploy pipeline.
This commit is contained in:
parent
3058bf59c0
commit
b9a84c674f
25
apps/gitea-external/ingress.yaml
Normal file
25
apps/gitea-external/ingress.yaml
Normal file
@ -0,0 +1,25 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: gitea-external
|
||||
namespace: prod
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||
nginx.ingress.kubernetes.io/proxy-body-size: "50m"
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
tls:
|
||||
- hosts:
|
||||
- git.georgepet.duckdns.org
|
||||
secretName: gitea-external-tls
|
||||
rules:
|
||||
- host: git.georgepet.duckdns.org
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: gitea-external
|
||||
port:
|
||||
number: 3000
|
||||
21
apps/gitea-external/service.yaml
Normal file
21
apps/gitea-external/service.yaml
Normal file
@ -0,0 +1,21 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: gitea-external
|
||||
namespace: prod
|
||||
spec:
|
||||
ports:
|
||||
- port: 3000
|
||||
targetPort: 3000
|
||||
protocol: TCP
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Endpoints
|
||||
metadata:
|
||||
name: gitea-external
|
||||
namespace: prod
|
||||
subsets:
|
||||
- addresses:
|
||||
- ip: 10.10.10.1
|
||||
ports:
|
||||
- port: 3000
|
||||
20
argocd-apps/gitea-external.yaml
Normal file
20
argocd-apps/gitea-external.yaml
Normal file
@ -0,0 +1,20 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: gitea-external
|
||||
namespace: argocd
|
||||
labels:
|
||||
app.kubernetes.io/part-of: infrastructure
|
||||
spec:
|
||||
project: default
|
||||
source:
|
||||
repoURL: http://10.10.10.1:3000/claude/k8s-apps.git
|
||||
targetRevision: main
|
||||
path: apps/gitea-external
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: prod
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
Loading…
x
Reference in New Issue
Block a user