Gitea/manifests/ingress.yaml

33 lines
667 B
YAML
Raw Normal View History

apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: replace-regex
namespace: gitea
spec:
replacePathRegex:
regex: "^/metrics"
replacement: "/"
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: gitea-ingress
namespace: gitea
annotations:
kubernetes.io/ingress.class: "traefik"
2024-11-17 20:18:02 +00:00
cert-manager.io/cluster-issuer: "letsencrypt-production"
spec:
entryPoints:
- websecure
routes:
- match: Host(`git.halis.io`) && PathPrefix(`/`)
kind: Rule
middlewares:
- name: replace-regex
services:
- name: gitea-svc
port: 80
2024-11-11 13:07:04 +00:00
tls:
2024-11-17 20:18:02 +00:00
secretName: git-halis-io-tls