Danyil Poprotskyi
Danyil Poprotskyi

Reputation: 53

Best way to set up vm.max_map_count for opensearch on GKE with helm

Right now I'm using this shell script to configure my pods on GKE so that they all have proper amount of virtual memory, I guess there is way better solution, which I'm trying to find.

Probably something like extraObjects thing? like elasticsearch recommends here.

So, what is the best way to set up vm.max_map_count for my nodes?

Upvotes: 0

Views: 2600

Answers (1)

Gari Singh
Gari Singh

Reputation: 12023

The two common ways to do this:

  1. Using an initContainer in the Pod specs which require the setting. This is what the ElasticSearch doc you reference shows. Note that in this case the initContainer will need escalated privileges

  2. You can create a DaemonSet which essentially executes the script you linked on all nodes on which you wish to run pods which require the setting (or you can just run it on all nodes). See bootstrapping GKE nodes with DaemonSets for more info on how to do this.

Upvotes: 1

Related Questions