prysm-pulse/k8s/beacon-chain/beacon-chain.service.yaml

53 lines
965 B
YAML
Raw Normal View History

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
---
2018-08-14 16:16:21 +00:00
kind: Service
apiVersion: v1
metadata:
name: beacon-chain
namespace: beacon-chain
2018-08-14 16:16:21 +00:00
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