Files
argocd-apps/apps/base/artifactapi3/httproute.yaml
T
unkinben 588b4a5f78 feat: add artifactapi3 application
Deploy artifactapi v3 with separate API and UI deployments, CNPG
PostgreSQL cluster with pooler, and Redis.
2026-06-23 22:52:52 +10:00

70 lines
1.5 KiB
YAML

---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: http-redirect
namespace: artifactapi3
spec:
hostnames:
- artifactapi3.k8s.syd1.au.unkin.net
- artifactapi.main.unkin.net
parentRefs:
- group: gateway.networking.k8s.io
kind: Gateway
name: artifactapi3
sectionName: http
- group: gateway.networking.k8s.io
kind: Gateway
name: artifactapi3-main
sectionName: http
rules:
- filters:
- type: RequestRedirect
requestRedirect:
scheme: https
statusCode: 301
matches:
- path:
type: PathPrefix
value: /
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: api-route
namespace: artifactapi3
spec:
hostnames:
- artifactapi3.k8s.syd1.au.unkin.net
- artifactapi.main.unkin.net
parentRefs:
- group: gateway.networking.k8s.io
kind: Gateway
name: artifactapi3
sectionName: https
- group: gateway.networking.k8s.io
kind: Gateway
name: artifactapi3-main
sectionName: https
rules:
- backendRefs:
- group: ""
kind: Service
name: artifactapi
port: 80
weight: 1
matches:
- path:
type: PathPrefix
value: /api
- backendRefs:
- group: ""
kind: Service
name: ui
port: 80
weight: 1
matches:
- path:
type: PathPrefix
value: /