feat: enable gitea
This commit is contained in:
parent
857fedec9c
commit
d4d3fa79be
@ -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
|
||||
|
@ -4,5 +4,5 @@ kind: Kustomization
|
||||
resources:
|
||||
- ../base/podinfo.yaml
|
||||
# - ../base/harbor.yaml
|
||||
# - ../base/gitea.yaml
|
||||
- ../base/gitea.yaml
|
||||
# - ../base/yadunut-dev.yaml
|
||||
|
Loading…
Reference in New Issue
Block a user