summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Kuznetsov <skuznets@redhat.com>2017-05-22 09:45:09 -0700
committerSteve Kuznetsov <skuznets@redhat.com>2017-05-22 10:07:59 -0700
commit2740dff958cb3c619ca508d83edb3b351f83c31d (patch)
treee491451531ebeb76d5fcf1916abcdca0fc56951a
parent108a42cbbdbfc8094d1d8bf8d0d8826adfdf760d (diff)
downloadopenshift-2740dff958cb3c619ca508d83edb3b351f83c31d.tar.gz
openshift-2740dff958cb3c619ca508d83edb3b351f83c31d.tar.bz2
openshift-2740dff958cb3c619ca508d83edb3b351f83c31d.tar.xz
openshift-2740dff958cb3c619ca508d83edb3b351f83c31d.zip
Add a readiness probe to the Kibana container
In order to ensure that the Kubernetes machinery can determine when the Kibana Pods are becoming ready, we need to add a readiness probe to the Containers that make up those pods. The Kibana readiness probe simply hits the base URL at `http://localhost:5601/` and expects a 200. Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
-rw-r--r--roles/openshift_logging_kibana/templates/kibana.j27
1 files changed, 7 insertions, 0 deletions
diff --git a/roles/openshift_logging_kibana/templates/kibana.j2 b/roles/openshift_logging_kibana/templates/kibana.j2
index 2298aa6d5..f8043812b 100644
--- a/roles/openshift_logging_kibana/templates/kibana.j2
+++ b/roles/openshift_logging_kibana/templates/kibana.j2
@@ -63,6 +63,13 @@ spec:
- name: kibana
mountPath: /etc/kibana/keys
readOnly: true
+ readinessProbe:
+ exec:
+ command:
+ - "/usr/share/kibana/probe/readiness.sh"
+ initialDelaySeconds: 5
+ timeoutSeconds: 4
+ periodSeconds: 5
-
name: "kibana-proxy"
image: {{ proxy_image }}