chore: restore independent prod gitops config

This commit is contained in:
Prodiglagla
2026-06-15 17:26:52 +08:00
parent c86deb5e12
commit 9e326c375a
40 changed files with 215 additions and 207 deletions
+101 -14
View File
@@ -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
+1 -2
View File
@@ -1,5 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- httproutes.yaml