Set vm.max_map_count on cluster nodes

前端 未结 3 641
面向向阳花
面向向阳花 2020-12-19 08:18

I try to install ElasticSearch (latest) on a cluster nodes on Google Container Engine but ElasticSearch needs the variable : vm.max_map_count to be >= 262144.

3条回答
  •  被撕碎了的回忆
    2020-12-19 08:39

    You should be able to use a DaemonSet to emulate the behavior of a startup script. If the script needs to do root-level actions on the node, you can configure the DaemonSet pods to run in privileged mode.

    For an example of how to do this, see https://github.com/kubernetes/contrib/tree/master/startup-script

提交回复
热议问题