summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukáš Vlček <lukas.vlcek@gmail.com>2017-03-22 15:14:49 +0100
committerLukáš Vlček <lukas.vlcek@gmail.com>2017-04-07 18:49:17 +0200
commit46d94126283ef96037b7d94937d38fdd522f55e8 (patch)
treeaab4a0acb2c2f9a759acb88a4fcdaaffe6d06048
parentec80b0c7d11a89b9c812e00c2c4db262c9dc9f72 (diff)
downloadopenshift-46d94126283ef96037b7d94937d38fdd522f55e8.tar.gz
openshift-46d94126283ef96037b7d94937d38fdd522f55e8.tar.bz2
openshift-46d94126283ef96037b7d94937d38fdd522f55e8.tar.xz
openshift-46d94126283ef96037b7d94937d38fdd522f55e8.zip
Introduce Elasticsearch readiness probe
-rw-r--r--roles/openshift_logging/templates/es.j27
1 files changed, 7 insertions, 0 deletions
diff --git a/roles/openshift_logging/templates/es.j2 b/roles/openshift_logging/templates/es.j2
index 16185fc1d..f89855bf5 100644
--- a/roles/openshift_logging/templates/es.j2
+++ b/roles/openshift_logging/templates/es.j2
@@ -95,6 +95,13 @@ spec:
readOnly: true
- name: elasticsearch-storage
mountPath: /elasticsearch/persistent
+ readinessProbe:
+ exec:
+ command:
+ - "/usr/share/elasticsearch/probe/readiness.sh"
+ initialDelaySeconds: 5
+ timeoutSeconds: 4
+ periodSeconds: 5
volumes:
- name: elasticsearch
secret: