Minikube: Set vm.max_map_count from 'minikube start'

Created on 28 Dec 2017  路  2Comments  路  Source: kubernetes/minikube

Is this a BUG REPORT or FEATURE REQUEST? (choose one):

FEATURE REQUEST

  • I'd like to have the ability to set vm.max_map_count when running minikube start
    Example: minikube start --max-map-count 262144

Elasticsearch requires that the vm.max_map_count be set to at least 262144, and right now, per this issue, the only way to do this is to start Minikube, run this command:

minikube ssh 'echo "sysctl -w vm.max_map_count=262144" | sudo tee -a /var/lib/boot2docker/bootlocal.sh'

and then restart Minikube.

It would be very nice to just be able to set this at minikube start.

Most helpful comment

I had this same issue, when trying to get elasticsearch running in minikube, and was able to solve it using _initContainers_ in my k8s deployment definition like here: https://github.com/giantswarm/kubernetes-elastic-stack/blob/28e517da737065bbb700a963f64ea3e7838b2aed/manifests-all.yaml#L114

All 2 comments

@antel0pe I see you closed this but I'm not clear on the resolution here... can you clarify as I am encountering the same issue

I had this same issue, when trying to get elasticsearch running in minikube, and was able to solve it using _initContainers_ in my k8s deployment definition like here: https://github.com/giantswarm/kubernetes-elastic-stack/blob/28e517da737065bbb700a963f64ea3e7838b2aed/manifests-all.yaml#L114

Was this page helpful?
0 / 5 - 0 ratings