Centralize Envoy Gateway routing

This commit is contained in:
Arvind Prabhakar 2026-09-05 18:34:45 +00:00
commit ba0a88b708
20 changed files with 184 additions and 318 deletions

View file

@ -82,50 +82,3 @@ spec:
- name: forgejo-data
persistentVolumeClaim:
claimName: forgejo-data
---
# Source: forgejo/templates/httproute.yaml
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: forgejo
namespace: forgejo
spec:
parentRefs:
- name: public-gateway
namespace: apps
hostnames:
- "www.symcrest.com"
rules:
- matches:
- path:
type: Exact
value: "/internal/dev/git"
filters:
- type: RequestRedirect
requestRedirect:
path:
type: ReplaceFullPath
replaceFullPath: "/internal/dev/git/"
statusCode: 301
- matches:
- path:
type: PathPrefix
value: "/internal/dev/git/"
filters:
- type: URLRewrite
urlRewrite:
path:
type: ReplacePrefixMatch
replacePrefixMatch: /
backendRefs:
- name: forgejo
port: 3000
- matches:
- path:
type: PathPrefix
value: /v2/
backendRefs:
- name: forgejo
port: 3000