Use /healthz for liveness and readiness probes in beacon chain (#2180)

* lower the p2p peer count minimum for a successful status

* add liveness and health probes

* 5m instead of 2m
This commit is contained in:
Preston Van Loon 2019-04-05 17:05:28 -05:00 committed by GitHub
parent 56210fd81f
commit 9a6a275d3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,8 +77,17 @@ spec:
key: DEPOSIT_CONTRACT_ADDRESS key: DEPOSIT_CONTRACT_ADDRESS
readinessProbe: readinessProbe:
initialDelaySeconds: 60 initialDelaySeconds: 60
tcpSocket: httpGet:
port: 4000 path: /healthz
port: 9090
livenessProbe:
initialDelaySeconds: 60
failureThreshold: 30 # Fails consistently for 5 minutes
periodSeconds: 10
httpGet:
path: /healthz
port: 9090
volumeClaimTemplates: volumeClaimTemplates:
- metadata: - metadata:
name: beacondb name: beacondb