2019-03-07 16:14:57 +00:00
|
|
|
kind: StatefulSet
|
|
|
|
apiVersion: apps/v1
|
2018-11-28 05:27:21 +00:00
|
|
|
metadata:
|
|
|
|
name: bootnode
|
|
|
|
namespace: beacon-chain
|
|
|
|
annotations:
|
|
|
|
prometheus.io/scrape: 'true'
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
2019-03-07 16:14:57 +00:00
|
|
|
serviceName: bootnode
|
2018-11-28 05:27:21 +00:00
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
component: bootnode
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
component: bootnode
|
|
|
|
spec:
|
|
|
|
priorityClassName: production-priority
|
|
|
|
containers:
|
2019-03-07 16:14:57 +00:00
|
|
|
- name: bootnode
|
2018-11-28 05:27:21 +00:00
|
|
|
image: gcr.io/prysmaticlabs/prysm/bootnode:latest
|
|
|
|
args:
|
|
|
|
- "-debug"
|
|
|
|
- "-port=4000"
|
2019-03-07 16:14:57 +00:00
|
|
|
- "-private=$(PRIVATE_KEY)"
|
2018-11-28 05:27:21 +00:00
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
memory: "100Mi"
|
|
|
|
cpu: "100m"
|
|
|
|
ports:
|
|
|
|
- containerPort: 4000
|
|
|
|
name: bootnodeport
|
2019-03-07 16:14:57 +00:00
|
|
|
env:
|
|
|
|
- name: PRIVATE_KEY
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: bootnode-secrets
|
|
|
|
key: private_key
|