Files
argocd-apps/apps/base/artifactapi/httproute_v3.yaml
T
benvin 8cbd645332 feat: deploy artifactapi3 (#192)
just-enough to test terraform deployment and begin migration. have
change to cnpg for the database and a new bucket for storage

---------

Co-authored-by: Ben Vincent <ben@unkin.net>
Reviewed-on: #192
2026-06-20 12:22:22 +10:00

113 lines
2.5 KiB
YAML

---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: artifactapi3-http-redirect
namespace: artifactapi
spec:
hostnames:
- artifactapi3.k8s.syd1.au.unkin.net
parentRefs:
- group: gateway.networking.k8s.io
kind: Gateway
name: artifactapi3
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: artifactapi3-ui
namespace: artifactapi
spec:
hostnames:
- artifactapi3.k8s.syd1.au.unkin.net
parentRefs:
- group: gateway.networking.k8s.io
kind: Gateway
name: artifactapi3
sectionName: https
rules:
- backendRefs:
- group: ""
kind: Service
name: artifactapi-v3-ui
port: 80
weight: 1
matches:
- path:
type: PathPrefix
value: /ui
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: artifactapi3-api
namespace: artifactapi
spec:
hostnames:
- artifactapi3.k8s.syd1.au.unkin.net
parentRefs:
- group: gateway.networking.k8s.io
kind: Gateway
name: artifactapi3
sectionName: https
rules:
- backendRefs:
- group: ""
kind: Service
name: artifactapi-v3-api
port: 80
weight: 1
filters:
- type: ExtensionRef
extensionRef:
group: traefik.io
kind: Middleware
name: api-ipallowlist
matches:
- path:
type: PathPrefix
value: /api
- backendRefs:
- group: ""
kind: Service
name: artifactapi-v3-api
port: 80
weight: 1
filters:
- type: ExtensionRef
extensionRef:
group: traefik.io
kind: Middleware
name: api-ipallowlist
matches:
- path:
type: PathPrefix
value: /config
- backendRefs:
- group: ""
kind: Service
name: artifactapi-v3-api
port: 80
weight: 1
filters:
- type: ExtensionRef
extensionRef:
group: traefik.io
kind: Middleware
name: api-ipallowlist
matches:
- path:
type: PathPrefix
value: /health