sae5dc03-tp/tp5/istio-gateway-missions.yaml
2025-11-12 16:51:07 +01:00

69 lines
1.2 KiB
YAML

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