From 9a6a275d3ddfe13fd4dbe886b0454ef149c3bb17 Mon Sep 17 00:00:00 2001 From: Preston Van Loon Date: Fri, 5 Apr 2019 17:05:28 -0500 Subject: [PATCH] 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 --- k8s/beacon-chain/beacon-chain.deploy.yaml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/k8s/beacon-chain/beacon-chain.deploy.yaml b/k8s/beacon-chain/beacon-chain.deploy.yaml index 3fedaf9e3..d794cb487 100644 --- a/k8s/beacon-chain/beacon-chain.deploy.yaml +++ b/k8s/beacon-chain/beacon-chain.deploy.yaml @@ -77,8 +77,17 @@ spec: key: DEPOSIT_CONTRACT_ADDRESS readinessProbe: initialDelaySeconds: 60 - tcpSocket: - port: 4000 + httpGet: + path: /healthz + port: 9090 + livenessProbe: + initialDelaySeconds: 60 + failureThreshold: 30 # Fails consistently for 5 minutes + periodSeconds: 10 + httpGet: + path: /healthz + port: 9090 + volumeClaimTemplates: - metadata: name: beacondb