feat: enable gitea
This commit is contained in:
parent
857fedec9c
commit
d4d3fa79be
@ -57,17 +57,11 @@ spec:
|
|||||||
metallb.universe.tf/allow-shared-ip: gitea
|
metallb.universe.tf/allow-shared-ip: gitea
|
||||||
ingress:
|
ingress:
|
||||||
enabled: true
|
enabled: true
|
||||||
annotations:
|
|
||||||
traefik.ingress.kubernetes.io/router.middlewares: gitea-old-to-new-redirect@kubernetescrd
|
|
||||||
hosts:
|
hosts:
|
||||||
- host: git.yadunut.dev
|
- host: git.yadunut.dev
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
- host: gitea.ts.yadunut.com
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
tls:
|
tls:
|
||||||
- secretName: wildcard-cert-i.yadunut.dev-prod
|
- secretName: wildcard-cert-i.yadunut.dev-prod
|
||||||
hosts:
|
hosts:
|
||||||
@ -145,14 +139,3 @@ spec:
|
|||||||
services:
|
services:
|
||||||
- name: gitea-ssh
|
- name: gitea-ssh
|
||||||
port: 2222
|
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:
|
resources:
|
||||||
- ../base/podinfo.yaml
|
- ../base/podinfo.yaml
|
||||||
# - ../base/harbor.yaml
|
# - ../base/harbor.yaml
|
||||||
# - ../base/gitea.yaml
|
- ../base/gitea.yaml
|
||||||
# - ../base/yadunut-dev.yaml
|
# - ../base/yadunut-dev.yaml
|
||||||
|
Loading…
Reference in New Issue
Block a user