prysm-pulse/k8s/beacon-chain/beacon-chain.deploy.yaml
Preston Van Loon 740a9b76a7
Kubernetes - Part 3 of ?? (#981)
* Add nginx ingress for proof-of-work namespace

* connect beacon-chain to pow namespace geth-nodes for websocket connections

* Added relay to beacon-chain

* Route inbound TCP traffic on port 20000 to beacon-relay

* Add bootnode

* Add a basic pk

* checkpoint

* Added flag for p2p port

* Register flag with main

* Set P2P port specifically

* Add beacon chain config

* add deployvrc job

* Add deployvrc service account

* review

* gazelle

* a cluster is needed, i guess
2018-11-28 00:27:21 -05:00

55 lines
1.7 KiB
YAML

kind: Deployment
apiVersion: apps/v1beta1
metadata:
name: beacon-chain
namespace: beacon-chain
spec:
replicas: 3
selector:
matchLabels:
component: beacon-chain
universe: beacon-chain
template:
metadata:
labels:
component: beacon-chain
universe: beacon-chain
annotations:
prometheus.io/scrape: 'true'
prometheus.io/port: '9090'
spec:
priorityClassName: production-priority
containers:
- name: beacon-chain
image: gcr.io/prysmaticlabs/prysm/beacon-chain:latest
args:
- "--web3provider=ws://geth-nodes.pow.svc.cluster.local:8546"
- "--verbosity=debug"
- "--vrcaddr=$(VALIDATOR_REGISTRATION_CONTRACT_ADDRESS)"
- "--rpc-port=4000"
- "--simulator=false"
- "--monitoring-port=9090"
- "--bootstrap-node=/ip4/$(BOOTNODE_SERVICE_HOST)/tcp/$(BOOTNODE_SERVICE_PORT)/p2p/QmUWTsZwoJ51tey4fEE9EAqzQeHFHm4FE9aSfgTv8xyuG5"
- "--relay-node=/ip4/35.221.47.224/tcp/20000/p2p/QmXNZeGdHYshgwyYyJnYG7u5iQ1Hej5R9QshgEZ5NACc1x"
- "--p2p-port=5000"
resources:
requests:
memory: "100Mi"
cpu: "50m"
limits:
memory: "250Mi"
cpu: "100m"
ports:
- containerPort: 4000
name: grpc
- containerPort: 5000
name: p2p
- containerPort: 9090
name: prometheus
env:
- name: VALIDATOR_REGISTRATION_CONTRACT_ADDRESS
valueFrom:
configMapKeyRef:
name: beacon-config
key: VALIDATOR_REGISTRATION_CONTRACT_ADDRESS