Kubernetes hosting

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

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

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