From d4d3fa79bed88ca5fdb826baf8e3ec6f0fbc1b33 Mon Sep 17 00:00:00 2001 From: Yadunand Prem Date: Wed, 14 May 2025 18:59:29 -0400 Subject: [PATCH] feat: enable gitea --- apps/base/gitea.yaml | 17 ----------------- apps/prod/kustomization.yaml | 2 +- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/apps/base/gitea.yaml b/apps/base/gitea.yaml index d0ea022..e03efab 100644 --- a/apps/base/gitea.yaml +++ b/apps/base/gitea.yaml @@ -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 diff --git a/apps/prod/kustomization.yaml b/apps/prod/kustomization.yaml index d6384ad..8673210 100644 --- a/apps/prod/kustomization.yaml +++ b/apps/prod/kustomization.yaml @@ -4,5 +4,5 @@ kind: Kustomization resources: - ../base/podinfo.yaml # - ../base/harbor.yaml - # - ../base/gitea.yaml + - ../base/gitea.yaml # - ../base/yadunut-dev.yaml