feat: add gitea route

This commit is contained in:
2026-11-14 22:20:12 +01:00
parent 8b8784d0f2
commit 530af4620c
6 changed files with 96 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: gitea-labzand
namespace: external
spec:
secretName: gitea-labzand-tls
dnsNames: ["gitea.labzand.com"]
issuerRef:
name: cloudflare-dns
kind: ClusterIssuer
+25
View File
@@ -0,0 +1,25 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: gitea
namespace: external
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: websecure
traefik.ingress.kubernetes.io/router.tls: "true"
spec:
ingressClassName: traefik
rules:
- host: gitea.labzand.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: gitea-external
port:
number: 3000
tls:
- hosts:
- gitea.labzand.com
secretName: gitea-labzand-tls
@@ -0,0 +1,16 @@
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: gitea-redirect
namespace: external
spec:
entryPoints:
- web
routes:
- match: Host(`gitea.labzand.com`)
kind: Rule
middlewares:
- name: redirect-https
services:
- name: api@internal
kind: TraefikService
+25
View File
@@ -0,0 +1,25 @@
apiVersion: v1
kind: Service
metadata:
name: gitea-external
namespace: external
spec:
type: ClusterIP
ports:
- name: http
port: 3000
targetPort: 3000
protocol: TCP
---
apiVersion: v1
kind: Endpoints
metadata:
name: gitea-external
namespace: external
subsets:
- addresses:
- ip: 192.168.2.52
ports:
- name: http
port: 3000
protocol: TCP