feat: enable gitea

This commit is contained in:
Yadunand Prem 2025-05-14 18:59:29 -04:00
parent 857fedec9c
commit d4d3fa79be
No known key found for this signature in database
2 changed files with 1 additions and 18 deletions

View File

@ -57,17 +57,11 @@ spec:
metallb.universe.tf/allow-shared-ip: gitea
ingress:
enabled: true
annotations:
traefik.ingress.kubernetes.io/router.middlewares: gitea-old-to-new-redirect@kubernetescrd
hosts:
- host: git.yadunut.dev
paths:
- path: /
pathType: ImplementationSpecific
- host: gitea.ts.yadunut.com
paths:
- path: /
pathType: ImplementationSpecific
tls:
- secretName: wildcard-cert-i.yadunut.dev-prod
hosts:
@ -145,14 +139,3 @@ spec:
services:
- name: gitea-ssh
port: 2222
---
apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: old-to-new-redirect
namespace: gitea
spec:
redirectRegex:
regex: ^http://gitea.ts.yadunut.com/(.*)
replacement: https://git.yadunut.dev/${1}
permanent: true

View File

@ -4,5 +4,5 @@ kind: Kustomization
resources:
- ../base/podinfo.yaml
# - ../base/harbor.yaml
# - ../base/gitea.yaml
- ../base/gitea.yaml
# - ../base/yadunut-dev.yaml