Deploy Elasticsearch?

Is it possible to use elasticsearch with multiple replicas on fly?

Hi @dragonfire1119

Yes that should be fine. Pretty much anything you can put into a docker container will work on fly.

Thank you for the reply.

Do I just use a docker container like in K8’s? Is there anything special I need to do before flying?

I am trying to get elasticsearch to work on the fly. So far, I have received permission errors on accessing the data directory.

2022-09-03T15:59:52.528 app[477c1331] dfw [info] ElasticsearchException[failed to bind service]; nested: AccessDeniedException[/var/data/elasticsearch/nodes];

I tried to add permissions and create the directory by modifying the Dockerfile.

FROM elasticsearch:7.11.1

RUN mkdir -p /var/log/elasticsearch
RUN chown -R elasticsearch:elasticsearch /var/log/elasticsearch
RUN chmod -R 755 /var/log/elasticsearch

RUN mkdir -p /var/data/elasticsearch
RUN chown -R elasticsearch:elasticsearch /var/data/elasticsearch
RUN chmod -R 755 /var/data/elasticsearch

Hi @dragonfire1119

Have you tried chmod with 0775 instead?