# Kubernetes hosting

**URL:** <https://discuss.elastic.co/t/kubernetes-hosting/240183>\
**Category:** Elasticsearch\
**Created:** [July 7, 2020, 3:12pm UTC](https://discuss.elastic.co/t/kubernetes-hosting/240183 "2020-07-07T15:12:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![thokar](https://avatars.discourse-cdn.com/v4/letter/t/db5fbb/32.png) [@thokar](https://discuss.elastic.co/u/thokar)\
**Post date:** [July 7, 2020, 3:12pm UTC](https://discuss.elastic.co/t/kubernetes-hosting/240183/1 "2020-07-07T15:12:03Z")

</div>

I am unsure if it is officially supported to host elastic on kubernetes like AKS.

When i scale the replicas up or down, or roleout a restart for example (for extending volume sizes, the nodes fail to join back to the cluster)

The error is that the elastic user can not authenticate. OR When i set the ELASTIC\_PASSWORD env the container are not comming up Exception in thread "main" java.nio.file.FileSystemException: /usr/share/elasticsearch/config/elasticsearch.keystore.tmp -\> /usr/share/elasticsearch/config/elasticsearch.keystore: Device or resource busy

I am using Version 7.8  
I have set a generic secret in kubernetes which holds a initialized keystore (which i have copied from a container after using bin/elasticsearch-setup-passwords interactive)

kubectl -n elk-infra create secret generic elasticsearch-keystore --from-file=./elasticsearch.keystore

volumeMounts:  
- name: elasticsearch-keystore  
mountPath: /usr/share/elasticsearch/config/elasticsearch.keystore  
subPath: elasticsearch.keystore  
volumes:  
- name: elasticsearch-keystore  
secret:  
secretName: elasticsearch-keystore

---

<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 4, 2020, 3:12pm UTC](https://discuss.elastic.co/t/kubernetes-hosting/240183/2 "2020-08-04T15:12:12Z")

</div>

Closed on August 4, 2020, 3:12pm UTC

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