prysm-pulse/k8s/beacon-chain/beacon-chain.service.yaml
Preston Van Loon 9f7f7d6cff
Tracing improvements (#2570)
* some improvements

* fix

* gazelle

* disable lostcancel
2019-05-11 17:43:55 -04:00

97 lines
1.8 KiB
YAML

apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: beacon-gateway
namespace: beacon-chain
spec:
selector:
istio: ingressgateway
servers:
- port:
number: 30002
name: grpc-beacon-chain
protocol: GRPC
hosts:
- beacon.prylabs.net
---
kind: Service
apiVersion: v1
metadata:
name: beacon-chain
namespace: beacon-chain
labels:
app: beacon-chain
spec:
selector:
component: beacon-chain
universe: beacon-chain
ports:
- port: 4000
targetPort: 4000
name: grpc-service
- port: 9090
targetPort: 9090
name: prometheus
type: ClusterIP
---
kind: VirtualService
apiVersion: networking.istio.io/v1alpha3
metadata:
name: beacon-prylabs-net
namespace: beacon-chain
spec:
hosts:
- beacon.prylabs.net
gateways:
- beacon-gateway
http:
- match:
- port: 30002
route:
- destination:
port:
number: 4000
host: beacon-chain.beacon-chain.svc.cluster.local
---
apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
name: beacon-chain
namespace: beacon-chain
spec:
host: beacon-chain.beacon-chain.svc.cluster.local
trafficPolicy:
loadBalancer:
consistentHash:
useSourceIp: true
---
apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
name: beacon-chain-grpc-web
namespace: beacon-chain
spec:
host: beacon-chain-grpc-web.beacon-chain.svc.cluster.local
trafficPolicy:
loadBalancer:
consistentHash:
useSourceIp: true
---
# Public grpc-web service
kind: Service
apiVersion: v1
metadata:
name: beacon-chain-grpc-web
namespace: beacon-chain
labels:
app: beacon-chain
spec:
selector:
component: beacon-chain
universe: beacon-chain
ports:
- port: 4000
targetPort: 4000
name: grpc-web-port
type: ClusterIP