Set niofs as storage type in docker/k8s

Hi everyone. I'm trying to deploy an instance of Elasticsearch v. 8.5.1 on a Kubernetes cluster (using the official Helm Chart), but the cluster I'm working on doesn't allow me to use privileged containers. This is an issue, since I would need to run the instruction "sysctl -w vm.max_map_count=262144" inside a privileged init container. As an alternative, I read that it is possible not to use mmapfs as a storage type, and therefore I was opting for niofs. However I don't know how to set it properly. I've tried to modify this property by adding the env variable "" to the StatefulSet of the chart, but it doesn't seem to be working (readiness check fails). What is the correct way to proceed?

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