From 371b1cbe8992c01a4cf8681df74cac8aee28df46 Mon Sep 17 00:00:00 2001 From: Steven Fitzpatrick Date: Tue, 25 Feb 2020 13:17:22 -0600 Subject: [PATCH] Add Liveness Probe to Kibana Deployment This change adds a liveness probe to the Kibana deployment spec. If multiple kibana replicas are deployed simultaniously they race to update the .kibana index in Elasticsearch, which sometimes results in a pod to stall without starting it's http server. Change-Id: Ib685d738ced59df66ff3501749316a01b5cacf79 --- kibana/templates/deployment.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/kibana/templates/deployment.yaml b/kibana/templates/deployment.yaml index 14a50e9f2..385fa99b4 100644 --- a/kibana/templates/deployment.yaml +++ b/kibana/templates/deployment.yaml @@ -71,11 +71,16 @@ spec: ports: - name: http containerPort: {{ tuple "kibana" "internal" "http" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }} + livenessProbe: + tcpSocket: + port: {{ tuple "kibana" "internal" "http" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }} + initialDelaySeconds: 180 + periodSeconds: 60 readinessProbe: tcpSocket: port: {{ tuple "kibana" "internal" "http" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }} initialDelaySeconds: 20 - periodSeconds: 10 + periodSeconds: 30 env: - name: ELASTICSEARCH_USERNAME valueFrom: