diff options
author | Steve Kuznetsov <skuznets@redhat.com> | 2017-05-22 09:45:09 -0700 |
---|---|---|
committer | Steve Kuznetsov <skuznets@redhat.com> | 2017-05-22 10:07:59 -0700 |
commit | 2740dff958cb3c619ca508d83edb3b351f83c31d (patch) | |
tree | e491451531ebeb76d5fcf1916abcdca0fc56951a /roles/openshift_logging_kibana | |
parent | 108a42cbbdbfc8094d1d8bf8d0d8826adfdf760d (diff) | |
download | openshift-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>
Diffstat (limited to 'roles/openshift_logging_kibana')
-rw-r--r-- | roles/openshift_logging_kibana/templates/kibana.j2 | 7 |
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 }} |