From a5a816c6c6f1dc2ee1397ecee397aa5f97de4443 Mon Sep 17 00:00:00 2001 From: Greg May Date: Mon, 13 Jul 2020 16:05:33 -0700 Subject: [PATCH] add healthchecks --- kubernetes-deployment.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/kubernetes-deployment.yaml b/kubernetes-deployment.yaml index 13c9e63..eda2f90 100644 --- a/kubernetes-deployment.yaml +++ b/kubernetes-deployment.yaml @@ -44,6 +44,25 @@ spec: requests: cpu: 100m memory: 1250Mi + # Readiness & Liveness Health Checks + readinessProbe: + failureThreshold: 5 + httpGet: + path: /healthcheck + port: 18080 + scheme: HTTP + initialDelaySeconds: 5 + periodSeconds: 5 + successThreshold: 1 + timeoutSeconds: 2 + livenessProbe: + failureThreshold: 3 + tcpSocket: + port: 18080 + initialDelaySeconds: 45 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 2 # License and Configuration file mounts volumeMounts: - name: configuration