feat: add artifactapi3 application

Deploy artifactapi v3 with separate API and UI deployments, CNPG
PostgreSQL cluster with pooler, and Redis. Routes traffic via
Gateway API for artifactapi.main.unkin.net and
artifactapi3.k8s.syd1.au.unkin.net.
This commit is contained in:
2026-06-21 18:08:09 +10:00
parent 1c6e087116
commit f15ef7bc80
18 changed files with 661 additions and 0 deletions
+69
View File
@@ -0,0 +1,69 @@
---
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: api
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: /