mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-10 06:37:00 +08:00
28 lines
576 B
YAML
28 lines
576 B
YAML
{{- if (eq .Values.ingress.kind "istio") }}
|
|
apiVersion: networking.istio.io/v1alpha3
|
|
kind: VirtualService
|
|
metadata:
|
|
name: {{ .Chart.Name }}-app
|
|
spec:
|
|
hosts:
|
|
- "*"
|
|
gateways:
|
|
- aistudio-gateway
|
|
http:
|
|
- match:
|
|
- uri:
|
|
prefix: /{{ .Chart.Name }}/
|
|
rewrite:
|
|
uri: "/"
|
|
headers:
|
|
request:
|
|
set:
|
|
From: "fronted"
|
|
X-Internal-Req: "false"
|
|
route:
|
|
- destination:
|
|
host: {{ .Chart.Name }}
|
|
port:
|
|
number: {{ .Values.service.port }}
|
|
{{- end}}
|