✓ Solved

How to Increase max_map_count on LKE nodes?

I'm trying to increase max_map_count on my LKE cluster to deploy Elastic search.
Elastic search requires vm.max_map_count to be at least 262144.

My first question is how to even do this. Can I ssh as root in the Node and update the configuration.

My second question would be what would happens if the node is replaced. Would I have to go back and update this again.

In a ideal world I would like a way to spin up LKE with this configuration.

Elastic search relevant Docs:

Thanks in advance.

1 Reply

✓ Best Answer

Neverminded I was actually able to do this. I just had to read the docs :).
All i needed to do was add this:
securityContext: privileged: true command: ['sh', '-c', 'sysctl -w vm.max_map_count=262144']


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct