chore: restore independent prod gitops config
This commit is contained in:
@@ -1,4 +1,32 @@
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: HTTPRoute
|
||||
metadata:
|
||||
name: huawai-http-redirect
|
||||
namespace: ircs-prod
|
||||
labels:
|
||||
app.kubernetes.io/part-of: ircs
|
||||
environment: prod
|
||||
spec:
|
||||
parentRefs:
|
||||
- group: gateway.networking.k8s.io
|
||||
kind: Gateway
|
||||
name: mnnu-gateway
|
||||
namespace: gateway-system
|
||||
sectionName: http
|
||||
hostnames:
|
||||
- huawai.mnnu.eu.org
|
||||
rules:
|
||||
- matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: /
|
||||
filters:
|
||||
- type: RequestRedirect
|
||||
requestRedirect:
|
||||
scheme: https
|
||||
statusCode: 301
|
||||
---
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: HTTPRoute
|
||||
metadata:
|
||||
name: huawai-route
|
||||
@@ -7,14 +35,31 @@ metadata:
|
||||
app.kubernetes.io/part-of: ircs
|
||||
environment: prod
|
||||
spec:
|
||||
hostnames:
|
||||
- huawai.sophia.fr.eu.org
|
||||
parentRefs:
|
||||
- group: gateway.networking.k8s.io
|
||||
kind: Gateway
|
||||
name: production-gateway
|
||||
namespace: envoy-gateway-system
|
||||
name: mnnu-gateway
|
||||
namespace: gateway-system
|
||||
sectionName: https
|
||||
hostnames:
|
||||
- huawai.mnnu.eu.org
|
||||
rules:
|
||||
- matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: /api/backend
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: /api/portal
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: /media
|
||||
backendRefs:
|
||||
- group: ""
|
||||
kind: Service
|
||||
name: ircs-portal-bff
|
||||
port: 8080
|
||||
weight: 1
|
||||
- matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
@@ -22,27 +67,69 @@ spec:
|
||||
backendRefs:
|
||||
- group: ""
|
||||
kind: Service
|
||||
name: ircs-frontend-gateway
|
||||
port: 80
|
||||
name: ircs-portal-frontend
|
||||
port: 3000
|
||||
weight: 1
|
||||
---
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: HTTPRoute
|
||||
metadata:
|
||||
name: ircs-route
|
||||
name: admin-http-redirect
|
||||
namespace: ircs-prod
|
||||
labels:
|
||||
app.kubernetes.io/part-of: ircs
|
||||
environment: prod
|
||||
spec:
|
||||
hostnames:
|
||||
- ircs.sophia.fr.eu.org
|
||||
parentRefs:
|
||||
- group: gateway.networking.k8s.io
|
||||
kind: Gateway
|
||||
name: production-gateway
|
||||
namespace: envoy-gateway-system
|
||||
name: mnnu-gateway
|
||||
namespace: gateway-system
|
||||
sectionName: http
|
||||
hostnames:
|
||||
- admin.mnnu.eu.org
|
||||
rules:
|
||||
- matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: /
|
||||
filters:
|
||||
- type: RequestRedirect
|
||||
requestRedirect:
|
||||
scheme: https
|
||||
statusCode: 301
|
||||
---
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: HTTPRoute
|
||||
metadata:
|
||||
name: admin-route
|
||||
namespace: ircs-prod
|
||||
labels:
|
||||
app.kubernetes.io/part-of: ircs
|
||||
environment: prod
|
||||
spec:
|
||||
parentRefs:
|
||||
- group: gateway.networking.k8s.io
|
||||
kind: Gateway
|
||||
name: mnnu-gateway
|
||||
namespace: gateway-system
|
||||
sectionName: https
|
||||
hostnames:
|
||||
- admin.mnnu.eu.org
|
||||
rules:
|
||||
- matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: /api/v1
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: /media
|
||||
backendRefs:
|
||||
- group: ""
|
||||
kind: Service
|
||||
name: ircs-admin-bff
|
||||
port: 8080
|
||||
weight: 1
|
||||
- matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
@@ -50,6 +137,6 @@ spec:
|
||||
backendRefs:
|
||||
- group: ""
|
||||
kind: Service
|
||||
name: ircs-frontend-gateway
|
||||
port: 8080
|
||||
name: ircs-admin-frontend
|
||||
port: 80
|
||||
weight: 1
|
||||
|
||||
Reference in New Issue
Block a user