我正在尝试在 minikube 中安装 Elasticsearch,但我无法继续,因为 pod 不断重启。
ERROR: [1] bootstrap checks failed
[1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
{"type": "server", "timestamp": "2020-01-16T13:04:46,836+0000", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "elasticsearch", "node.name": "elasticsearch-master", "message": "stopping ..." }
{"type": "server", "timestamp": "2020-01-16T13:04:46,883+0000", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "elasticsearch", "node.name": "elasticsearch-master", "message": "stopped" }
{"type": "server", "timestamp": "2020-01-16T13:04:46,884+0000", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "elasticsearch", "node.name": "elasticsearch-master", "message": "closing ..." }
{"type": "server", "timestamp": "2020-01-16T13:04:46,981+0000", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "elasticsearch", "node.name": "elasticsearch-master", "message": "closed" }
{"type": "server", "timestamp": "2020-01-16T13:04:46,987+0000", "level": "INFO", "component": "o.e.x.m.p.NativeController", "cluster.name": "elasticsearch", "node.name": "elasticsearch-master", "message": "Native controller process has stopped - no new native processes can be started" }
开机后,我的电脑 vm.max_map_count 已经设置为 262144。因为我昨天已经编辑了 /etc/sysctl.conf。
elk-tut$ sudo sysctl vm.max_map_count=262144
vm.max_map_count = 262144
我已经搜索了互联网,但只有将 vm.max_map_count 设置为 262144 是唯一的解决方法。我想知道为什么 minikube 仍然看到 vm.max_map_count [65530] 而不是 262144。