# Elasticsearch in kubernetes: how to use remote filesystem?

**URL:** <https://discuss.elastic.co/t/elasticsearch-in-kubernetes-how-to-use-remote-filesystem/189781>\
**Category:** Elasticsearch\
**Created:** [July 10, 2019, 1:42pm UTC](https://discuss.elastic.co/t/elasticsearch-in-kubernetes-how-to-use-remote-filesystem/189781 "2019-07-10T13:42:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![asp](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@asp](https://discuss.elastic.co/u/asp)\
**Post date:** [July 10, 2019, 1:42pm UTC](https://discuss.elastic.co/t/elasticsearch-in-kubernetes-how-to-use-remote-filesystem/189781/1 "2019-07-10T13:42:59Z")

</div>

Hi, I want to run elasticsearch in kubernetes.

Since I understand the kubernetes paradigm this way, that "don't care on which node your stuff is running", I am hesitating with pinning elasticsearch on defined kubernetes nodes. Also the local storage may be too small, so I would like to use remote storage if possible because it can easier react growing storage. The storage admins will take care of it.

In dev environment I tired a 3 node cluster using glusterfs, but I have problems when restoring a snapshot, which is stored on nfs share.

My cluster is quite often pending between yellow and green status. I found this thread here:

> [@Elk on Docker Swarm and glusterFS crash](https://discuss.elastic.co/t/elk-on-docker-swarm-and-glusterfs-crash/127940):
>
> Hi, I'm trying to deploy an ELK stack on docker swarm. If I bind the elastic dir data to a Docker volume there is no problem. The problems comes as soon as I try to bind the elstastic data dir to a glusterFS volume. I use glusterFS to synchronise the data between all the swarm nodes in the cluster. I deploy ELK using the following code: elasticsearch: image: docker.elastic.co/elasticsearch/elasticsearch:6.2.3 # container\_name: elasticsearch environment: - "http.host=0.0.…

where you mentioned that only local filesystem or block device is supported.

What options for remote filestorage in bare metal kubernetes environment do I have?  
Will elastic work well with FC storage class where I could mount a SAN device?  
Any other alternatices?

Should an NFS storage work fine for snapshots?

Thanks,  
Andreas

---

<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:** [August 7, 2019, 1:43pm UTC](https://discuss.elastic.co/t/elasticsearch-in-kubernetes-how-to-use-remote-filesystem/189781/2 "2019-08-07T13:43:03Z")

</div>

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