8cbd645332
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
113 lines
2.5 KiB
YAML
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
|