kind: Service apiVersion: v1 metadata: name: public-faucet namespace: pow spec: selector: component: public-faucet ports: - port: 8000 targetPort: 8000 name: grpc-web-port type: ClusterIP --- apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata: name: api-prylabs-net namespace: istio-system spec: hosts: - api.prylabs.net gateways: - prylabs-wildcard-gateway http: - route: - destination: port: number: 8000 host: public-faucet.pow.svc.cluster.local corsPolicy: allowOrigin: - "*" allowMethods: - POST - GET - OPTIONS - PUT - DELETE allowHeaders: - grpc-timeout - content-type - keep-alive - user-agent - cache-control - content-type - content-transfer-encoding - x-accept-content-transfer-encoding - x-accept-response-streaming - x-user-agent - x-grpc-web maxAge: 1728s exposeHeaders: - grpc-status - grpc-message