# ECK - How to set context path for elasticsearch?

**URL:** <https://discuss.elastic.co/t/eck-how-to-set-context-path-for-elasticsearch/285442>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Created:** [September 29, 2021, 7:11am UTC](https://discuss.elastic.co/t/eck-how-to-set-context-path-for-elasticsearch/285442 "2021-09-29T07:11:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![x00m](https://avatars.discourse-cdn.com/v4/letter/x/90db22/32.png) [@x00m](https://discuss.elastic.co/u/x00m)\
**Post date:** [September 29, 2021, 7:11am UTC](https://discuss.elastic.co/t/eck-how-to-set-context-path-for-elasticsearch/285442/1 "2021-09-29T07:11:41Z")

</div>

After eck is setup, i can reach an index via [http://quickstart-es-http/](http://quickstart-es-http/)

How to set a custom context path so that the Elasticsearch is reachable via [http://quickstart-es-http/customcontextpath/](http://quickstart-es-http/customcontextpath/) ?

---

<div class="post-metadata">

**Author:** ![pebrc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pebrc/32/101790_2.png) [@pebrc](https://discuss.elastic.co/u/pebrc)\
**Post date:** [October 4, 2021, 8:41am UTC](https://discuss.elastic.co/t/eck-how-to-set-context-path-for-elasticsearch/285442/2 "2021-10-04T08:41:11Z")

</div>

With standard Kubernetes services that's not possible afaik. But have a look at [Ingress](https://kubernetes.io/docs/concepts/services-networking/ingress/) that should allow you to serve the Elasticsearch API from a subpath on your domain.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 1, 2021, 8:42am UTC](https://discuss.elastic.co/t/eck-how-to-set-context-path-for-elasticsearch/285442/3 "2021-11-01T08:42:04Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
