Expose Elasticsearch over HTTP

Is there a way to expose the Elasticsearch service for READ over HTTP through a route?

0

Comments

1 comment
Date Votes
  • You can expose Elasticsearch to the outside world by routing to it directly with something like this in your routes.yaml file:

    https://es.{default}/:
        type: upstream
        upstream: your_es_service:lasticsearch
    

    That fully exposes it, however, so is not recommended on its own. For Elasticsearch 7.2 and later we recommend enabling authentication:

    https://docs.platform.sh/configuration/services/elasticsearch.html#authentication

    Cheers.

    0

Please sign in to leave a comment.

 

Didn't find what you were looking for?

New post