feat: tp5, pas fini (7.4 commencé)

This commit is contained in:
Emi BOUCLY 2025-11-12 16:51:07 +01:00
parent 1fef95a37f
commit 83775e9dc0
18 changed files with 466 additions and 0 deletions

View file

@ -0,0 +1,69 @@
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
namespace: tp5
name: missions-gateway
spec:
selector:
istio: ingressgateway
servers:
- port:
number: 80
name: http
protocol: HTTP
hosts:
- "*"
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
namespace: tp5
name: missions
spec:
hosts:
- "*"
gateways:
- missions-gateway
http:
- name: API Enseignants
match:
- uri:
prefix: "/api/enseignants"
rewrite:
uri: "/enseignants"
route:
- destination:
host: enseignants
port:
number: 5000
- name: API Missions
match:
- uri:
prefix: "/api/missions"
rewrite:
uri: "/missions"
route:
- destination:
host: missions
port:
number: 5000
- name: API Villes
match:
- uri:
prefix: "/api/villes"
rewrite:
uri: "/villes"
route:
- destination:
host: villes
port:
number: 5000
- name: Application Web
route:
- destination:
host: app
port:
number: 8080