2018-11-28 05:27:21 +00:00
|
|
|
kind: Service
|
|
|
|
apiVersion: v1
|
|
|
|
metadata:
|
2019-02-19 17:32:14 +00:00
|
|
|
name: public-faucet
|
2018-11-28 05:27:21 +00:00
|
|
|
namespace: pow
|
|
|
|
spec:
|
|
|
|
selector:
|
2019-02-19 17:32:14 +00:00
|
|
|
component: public-faucet
|
2018-11-28 05:27:21 +00:00
|
|
|
ports:
|
2019-02-19 17:32:14 +00:00
|
|
|
- port: 8000
|
|
|
|
targetPort: 8000
|
|
|
|
name: grpc-web-port
|
2018-11-28 05:27:21 +00:00
|
|
|
type: ClusterIP
|
2019-02-19 17:32:14 +00:00
|
|
|
---
|
|
|
|
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
|