# Elasticsearch readiness Probe change to httpGet instead of exec

**URL:** <https://discuss.elastic.co/t/elasticsearch-readiness-probe-change-to-httpget-instead-of-exec/363940>\
**Category:** Elasticsearch\
**Created:** [July 29, 2024, 4:24am UTC](https://discuss.elastic.co/t/elasticsearch-readiness-probe-change-to-httpget-instead-of-exec/363940 "2024-07-29T04:24:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rakesh\_9](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rakesh_9/32/122281_2.png) [@Rakesh\_9](https://discuss.elastic.co/u/Rakesh_9)\
**Post date:** [July 29, 2024, 4:24am UTC](https://discuss.elastic.co/t/elasticsearch-readiness-probe-change-to-httpget-instead-of-exec/363940/1 "2024-07-29T04:24:34Z")

</div>

Hi, I'm trying to set up an Elasticsearch stack on Kubernetes using the ECK operator. I was able to install the operator successfully. I wanted to change the default readiness prob from exec type ( [Default Probe](https://github.com/elastic/helm-charts/blob/a49995539e4347e8729437cfbb54299023c81306/elasticsearch/templates/statefulset.yaml#L181-L215) ) to httpGet type, I tried setting the environment variable `REDINESS_PROBE_PROTOCOL` to `http` but it is not working. I even tried adding a custom readiness prob ( [like this](https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-readiness.html) ) under podTemplate fo Elasticsearch but it is not working.

Could someone please help me change this readiness probe to `httpGet` something like this [link](https://github.com/helm/charts/blob/8d0cd3ceee4a8d761375ec45e112e01467fb4e4e/stable/elasticsearch/values.yaml#L237-L242). As my organization doesn't allow us to run shellscript as redinessProb in production.

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [July 29, 2024, 7:49am UTC](https://discuss.elastic.co/t/elasticsearch-readiness-probe-change-to-httpget-instead-of-exec/363940/2 "2024-07-29T07:49:05Z")

</div>

You are linking to two different products.

The ECK readiness check is not the same as the one in the helm-charts repository.

For recent (\>8.2) versions of Elasticsearch, the ECK readiness check uses the [Elasticsearch readiness port](https://www.elastic.co/guide/en/elasticsearch/reference/current/advanced-configuration.html#readiness-tcp-port) which cannot be checked using `httpGet`.

You might be able to get ECK to use an http readiness check instead of the exec check, but it would be a reduction in functionality and may give incorrect results.

---

<div class="post-metadata">

**Author:** ![Rakesh\_9](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rakesh_9/32/122281_2.png) [@Rakesh\_9](https://discuss.elastic.co/u/Rakesh_9)\
**Post date:** [July 31, 2024, 11:36am UTC](https://discuss.elastic.co/t/elasticsearch-readiness-probe-change-to-httpget-instead-of-exec/363940/3 "2024-07-31T11:36:23Z")

</div>

Thanks @TimV for the quick response.
