mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-07 10:12:19 +00:00
612bb38077
* Fix assignments bug where validators don't retry for assignments on failure * synch only please * trying to fix state issues * trying random stuff * do not explode * use ctx * working build, failing tests * broadcast local addrs as well as relay addrs * fixed p2p tests, more tests to fix still * another test fixed, log warning instead of throw error * Fix last tests * godoc * add test for broadcast in apply fork choiec * remove unneeded code * remove tracer adapter, not needed * remove extra stuff * remove any * revert addr_factory * revert addr_factory * Revert "revert addr_factory" This reverts commit e93fb706494a1070158b8db31e67146d6b0648ad. * Revert "revert addr_factory" This reverts commit dedaa405559cc818698870c4e4570953367f1e3c. * revert removal of this code * unused param
83 lines
2.7 KiB
YAML
83 lines
2.7 KiB
YAML
kind: StatefulSet
|
|
apiVersion: apps/v1
|
|
metadata:
|
|
name: beacon-chain
|
|
namespace: beacon-chain
|
|
spec:
|
|
replicas: 3
|
|
serviceName: beacon-chain
|
|
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'
|
|
sidecar.istio.io/inject: 'false' # istio breaks local peer connections
|
|
spec:
|
|
priorityClassName: production-priority
|
|
affinity:
|
|
podAntiAffinity:
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
- labelSelector:
|
|
matchLabels:
|
|
component: beacon-chain
|
|
topologyKey: kubernetes.io/hostname
|
|
preferredDuringSchedulingIgnoredDuringExecution:
|
|
- weight: 100
|
|
podAffinityTerm:
|
|
labelSelector:
|
|
matchLabels:
|
|
component: beacon-chain
|
|
topologyKey: failure-domain.beta.kubernetes.io/zone
|
|
containers:
|
|
- name: beacon-chain
|
|
image: gcr.io/prysmaticlabs/prysm/beacon-chain:latest
|
|
args:
|
|
- --web3provider=ws://public-rpc-nodes.pow.svc.cluster.local:8546
|
|
#- --verbosity=debug
|
|
- --deposit-contract=$(DEPOSIT_CONTRACT_ADDRESS)
|
|
- --rpc-port=4000
|
|
- --monitoring-port=9090
|
|
- --bootstrap-node=/ip4/$(BOOTNODE_SERVICE_HOST)/tcp/$(BOOTNODE_SERVICE_PORT)/p2p/QmQEe7o6hKJdGdSkJRh7WJzS6xrex5f4w2SPR6oWbJNriw
|
|
- --relay-node=/ip4/35.224.249.2/tcp/30000/p2p/QmfAgkmjiZNZhr2wFN9TwaRgHouMTBT6HELyzE5A3BT2wK
|
|
- --p2p-port=5000
|
|
- --demo-config
|
|
- --enable-tracing
|
|
- --tracing-endpoint=http://jaeger-collector.istio-system.svc.cluster.local:14268
|
|
- --trace-sample-fraction=1.0
|
|
- --datadir=/data
|
|
resources:
|
|
requests:
|
|
memory: "100Mi"
|
|
cpu: "50m"
|
|
volumeMounts:
|
|
- mountPath: /data
|
|
name: beacondb
|
|
ports:
|
|
- containerPort: 4000
|
|
name: grpc
|
|
- containerPort: 5000
|
|
name: p2p
|
|
- containerPort: 9090
|
|
name: prometheus
|
|
env:
|
|
- name: DEPOSIT_CONTRACT_ADDRESS
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: beacon-config
|
|
key: DEPOSIT_CONTRACT_ADDRESS
|
|
volumeClaimTemplates:
|
|
- metadata:
|
|
name: beacondb
|
|
spec:
|
|
accessModes: [ "ReadWriteOnce" ]
|
|
resources:
|
|
requests:
|
|
storage: 5Gi
|