prysm-pulse/k8s/beacon-chain/validator.deploy.yaml
Preston Van Loon 40588021d4 Add eth1 balance monitoring alert (#2575)
* Add eth1 balance monitoring

* lint

* lint

* priority

* lint

* use value in alerts

* fix beacon-chain service

* working on stability

* more yaml

* add more alerts to the finality alerts

* add nother header to ignore

* extend requirement time for low balance

* remove old flag

* remove extra flag

* feedback to use consistent flag
2019-05-19 10:52:17 -04:00

78 lines
2.0 KiB
YAML

kind: Deployment
apiVersion: apps/v1beta1
metadata:
name: validator
namespace: beacon-chain
spec:
replicas: 9
selector:
matchLabels:
component: validator
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 0
maxUnavailable: '5%'
minReadySeconds: 20
template:
metadata:
labels:
component: validator
annotations:
prometheus.io/scrape: 'true'
prometheus.io/port: '9090'
spec:
priorityClassName: production-priority
containers:
- name: validator
image: gcr.io/prysmaticlabs/prysm/validator:latest
args:
- --keystore-path=/keystore
- --password=nopass
- --datadir=/data
- --beacon-rpc-provider=beacon-chain.beacon-chain.svc.cluster.local:4000
- --monitoring-port=9090
- --enable-tracing
- --tracing-process-name=$(POD_NAME)
- --tracing-endpoint=http://jaeger-collector.istio-system.svc.cluster.local:14268/api/traces
- --trace-sample-fraction=1.0
- --log-format=fluentd
- --disable-rewards-penalties-logging
volumeMounts:
- name: localdata
mountPath: /data
- name: keystore
mountPath: /keystore
readOnly: true
resources:
requests:
cpu: "50m"
memory: "100Mi"
env:
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
initContainers:
- name: init-pk
image: gcr.io/prysmaticlabs/prysm/cluster-pk-manager/client:latest
args:
- --keystore-dir=/keystore
- --keystore-password=nopass
- --pod-name=$(POD_NAME)
- --server=cluster-pk-manager:8000
- --keys=64
volumeMounts:
- name: keystore
mountPath: /keystore
env:
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
volumes:
- name: keystore
emptyDir: {}
- name: localdata
emptyDir: {}