feat: tp5, pas fini (7.4 commencé)
This commit is contained in:
parent
1fef95a37f
commit
83775e9dc0
18 changed files with 466 additions and 0 deletions
69
tp5/istio-gateway-missions.yaml
Normal file
69
tp5/istio-gateway-missions.yaml
Normal 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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue