Elasticseach got healthcheck 58/1258/1
authorBalazs Szekeres <balazs.szekeres@nokia.com>
Thu, 25 Jul 2019 08:36:49 +0000 (10:36 +0200)
committerBalazs Szekeres <balazs.szekeres@nokia.com>
Thu, 25 Jul 2019 08:36:49 +0000 (10:36 +0200)
Elasticseach got healthcheck

Change-Id: I16ebb376feaca7d4d1464236dff689136187c3b3
Signed-off-by: Balazs Szekeres <balazs.szekeres@nokia.com>
SPECS/infra-charts.spec
infra-charts/templates/elasticsearch-data-statefulset.yaml
infra-charts/templates/elasticsearch-master-statefulset.yaml

index f9eb307..c7d329e 100644 (file)
@@ -15,7 +15,7 @@
 %define COMPONENT infra-charts
 %define RPM_NAME caas-%{COMPONENT}
 %define RPM_MAJOR_VERSION 1.0.0
-%define RPM_MINOR_VERSION 15
+%define RPM_MINOR_VERSION 16
 
 Name:           %{RPM_NAME}
 Version:        %{RPM_MAJOR_VERSION}
index baa591a..5e41391 100644 (file)
@@ -99,6 +99,13 @@ spec:
           tcpSocket:
             port: {{ .Values.elasticsearch.port }}
           initialDelaySeconds: 5
+        livenessProbe:
+          tcpSocket:
+            port: {{ .Values.elasticsearch.port }}
+          initialDelaySeconds: 60
+          timeoutSeconds: 5
+          successThreshold: 1
+          failureThreshold: 5
         volumeMounts:
         - name: time-mount
           mountPath: /etc/localtime
index 2fe1a90..99e405b 100644 (file)
@@ -92,6 +92,13 @@ spec:
             path: /_cluster/health?local=true
             port: {{ .Values.elasticsearch.port }}
           initialDelaySeconds: 5
+        livenessProbe:
+          tcpSocket:
+            port: {{ .Values.elasticsearch.port }}
+          initialDelaySeconds: 60
+          timeoutSeconds: 5
+          successThreshold: 1
+          failureThreshold: 5
         image: {{ .Values.elasticsearch.image_name }}
         command: ["/usr/bin/supervisord","-n","-c","/etc/supervisord.conf"]
         volumeMounts: