homelab-gitops/apps/forgejo/route.yaml
gwg313 0b69038d79
apps restructure
Signed-off-by: gwg313 <gwg313@pm.me>
2026-05-17 14:45:05 -04:00

36 lines
733 B
YAML

apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: forgejo
namespace: forgejo
spec:
parentRefs:
- name: shared-edge-gateway
namespace: cilium-ingress
hostnames:
- git.local.gwg313.xyz
- git.gwg313.xyz
- git.zerotier.gwg313.xyz
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: forgejo
port: 80
---
apiVersion: gateway.networking.k8s.io/v1beta1
kind: ReferenceGrant
metadata:
name: allow-gateway-to-forgejo
namespace: forgejo
spec:
from:
- group: gateway.networking.k8s.io
kind: Gateway
namespace: cilium-ingress
to:
- group: ""
kind: Service
name: forgejo