control-center-management/k8s/istio-setting.yaml

47 lines
934 B
YAML
Raw Normal View History

2023-09-08 02:30:01 +00:00
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: "/chambers"
2023-09-08 02:30:01 +00:00
corsPolicy:
maxAge: 1m
allowCredentials: true
allowHeaders:
- "*"
allowOrigins:
- regex: ".*"
allowMethods:
- GET
- POST
- PUT
- DELETE
- PATCH
- OPTIONS
gateways:
- control-center-management