From: Balazs Szekeres Date: Thu, 25 Jul 2019 08:36:49 +0000 (+0200) Subject: Elasticseach got healthcheck X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=commitdiff_plain;h=1ec9b870f714752fde1b5574f29cab503bae8725;p=ta%2Fcaas-install.git Elasticseach got healthcheck Elasticseach got healthcheck Change-Id: I16ebb376feaca7d4d1464236dff689136187c3b3 Signed-off-by: Balazs Szekeres --- diff --git a/SPECS/infra-charts.spec b/SPECS/infra-charts.spec index f9eb307..c7d329e 100644 --- a/SPECS/infra-charts.spec +++ b/SPECS/infra-charts.spec @@ -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} diff --git a/infra-charts/templates/elasticsearch-data-statefulset.yaml b/infra-charts/templates/elasticsearch-data-statefulset.yaml index baa591a..5e41391 100644 --- a/infra-charts/templates/elasticsearch-data-statefulset.yaml +++ b/infra-charts/templates/elasticsearch-data-statefulset.yaml @@ -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 diff --git a/infra-charts/templates/elasticsearch-master-statefulset.yaml b/infra-charts/templates/elasticsearch-master-statefulset.yaml index 2fe1a90..99e405b 100644 --- a/infra-charts/templates/elasticsearch-master-statefulset.yaml +++ b/infra-charts/templates/elasticsearch-master-statefulset.yaml @@ -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: