softplayer-helmfile/charts/softplayer-backend/templates/vs.yaml

49 lines
1.0 KiB
YAML
Raw Normal View History

2024-04-06 17:56:56 +00:00
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: {{ include "softplayer-backend.fullname" . }}
labels:
{{- include "softplayer-backend.labels" . | nindent 4 }}
spec:
gateways:
2024-05-08 15:38:52 +00:00
- {{ .Values.istio.gateway }}
2024-04-06 17:56:56 +00:00
hosts:
2024-05-04 16:42:28 +00:00
- {{ .Values.config.hostname }}
2024-04-06 17:56:56 +00:00
http:
- match:
- uri:
prefix: /
route:
- destination:
host: {{ include "softplayer-backend.fullname" . }}
port:
number: 80
corsPolicy:
allowOrigin:
- "*"
allowMethods:
- POST
- GET
- OPTIONS
- PUT
- DELETE
allowHeaders:
- grpc-timeout
- content-type
- keep-alive
- user-agent
- cache-control
- content-type
- content-transfer-encoding
- custom-header-1
- x-accept-content-transfer-encoding
- x-accept-response-streaming
- x-user-agent
- x-grpc-web
2024-04-23 18:49:30 +00:00
- token
- uuid
2024-04-06 17:56:56 +00:00
maxAge: 1728s
exposeHeaders:
- grpc-status
- grpc-message