prysm-pulse/k8s/geth/public_nodes.service.yaml
Preston Van Loon 81c2e4e94b
First pass on pow faucet for testnet (#1624)
* first pass on pow faucet for testnet

* delete unused thing

* remove unneeded thing

*  remove other thing

* https & remove a log

* don't force redirect on https, its not working?

* some renaming of stuff

* lint

* lint

* some stablity config

* move protos to proto directory, add generated pb file for go users

* add health probe

* add hpa and request cpu

* handle err

* some more config
2019-02-19 12:32:14 -05:00

72 lines
1.4 KiB
YAML

kind: Service
apiVersion: v1
metadata:
name: public-rpc-nodes
namespace: pow
spec:
selector:
component: public-rpc-node
universe: geth
ports:
- port: 8545
targetPort: 8545
name: http-rpc
protocol: TCP
- port: 8546
targetPort: 8546
name: http-ws
protocol: TCP
- port: 8547
targetPort: 8547
name: http-graphql
type: ClusterIP
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: goerli-prylabs-net
namespace: istio-system
spec:
hosts:
- goerli.prylabs.net
gateways:
- prylabs-wildcard-gateway
http:
- match:
- uri:
prefix: /websocket
route:
- destination:
port:
number: 8546
host: public-rpc-nodes.pow.svc.cluster.local
websocketUpgrade: true
- match:
- uri:
prefix: /graphql
route:
- destination:
port:
number: 8547
host: public-rpc-nodes.pow.svc.cluster.local
- match: # Must be last
- uri:
prefix: /
route:
- destination:
port:
number: 8545
host: public-rpc-nodes.pow.svc.cluster.local
---
apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
name: public-rpc-nodes
namespace: pow
spec:
host: public-rpc-nodes.pow.svc.cluster.local
trafficPolicy:
loadBalancer:
consistentHash:
useSourceIp: true