From 325848509a62a113a113fd4633dfb927fd943c3f Mon Sep 17 00:00:00 2001 From: likerj Date: Thu, 3 Oct 2019 16:25:52 +0800 Subject: [PATCH] es add readiness and liveness health check use transport as health check port --- .../addons/fluentd-elasticsearch/es-statefulset.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cluster/addons/fluentd-elasticsearch/es-statefulset.yaml b/cluster/addons/fluentd-elasticsearch/es-statefulset.yaml index a43ce806e26..4975e495e0d 100644 --- a/cluster/addons/fluentd-elasticsearch/es-statefulset.yaml +++ b/cluster/addons/fluentd-elasticsearch/es-statefulset.yaml @@ -86,6 +86,16 @@ spec: - containerPort: 9300 name: transport protocol: TCP + livenessProbe: + tcpSocket: + port: transport + initialDelaySeconds: 5 + timeoutSeconds: 10 + readinessProbe: + tcpSocket: + port: transport + initialDelaySeconds: 5 + timeoutSeconds: 10 volumeMounts: - name: elasticsearch-logging mountPath: /data