47 lines
933 B
YAML
47 lines
933 B
YAML
apiVersion: networking.istio.io/v1alpha3
|
|
kind: Gateway
|
|
metadata:
|
|
name: control-center-management
|
|
namespace: sdt-cloud
|
|
spec:
|
|
servers:
|
|
- hosts:
|
|
- "*"
|
|
port:
|
|
name: http
|
|
number: 80
|
|
protocol: HTTP
|
|
selector:
|
|
istio: ingressgateway
|
|
---
|
|
apiVersion: networking.istio.io/v1alpha3
|
|
kind: VirtualService
|
|
metadata:
|
|
name: control-center-management
|
|
namespace: sdt-cloud
|
|
spec:
|
|
hosts:
|
|
- "*"
|
|
http:
|
|
- route:
|
|
- destination:
|
|
host: control-center-management.sdt-cloud.svc.cluster.local
|
|
match:
|
|
- uri:
|
|
prefix: "/chamber"
|
|
corsPolicy:
|
|
maxAge: 1m
|
|
allowCredentials: true
|
|
allowHeaders:
|
|
- "*"
|
|
allowOrigins:
|
|
- regex: ".*"
|
|
allowMethods:
|
|
- GET
|
|
- POST
|
|
- PUT
|
|
- DELETE
|
|
- PATCH
|
|
- OPTIONS
|
|
gateways:
|
|
- control-center-management |