--- apiVersion: networking.istio.io/v1beta1 kind: VirtualService metadata: name: {{ include "softplayer-backend.fullname" . }} labels: {{- include "softplayer-backend.labels" . | nindent 4 }} spec: gateways: - istio-system/badhouseplants-net hosts: - "softplayer-backend.badhouseplants.net" 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 - token - uuid maxAge: 1728s exposeHeaders: - grpc-status - grpc-message