While attempting to run ElasticSearch on K8 I ran into an error that would kill the container:
max virtual memory areas vm.max_map_count  is too low, increase to at least 
Fortunately this is pretty well documented and I was able to figure out a configuration setting for the container that got it stable. This question isn't about that.
The question that arises for me is why does this happen on K8 versus Docker? I'm using the same image (The official ES image) in both cases so what are some of the reasons why the value would be different? Is there a way I could configure K8 or the machines I'm running it on so that this situation wouldn't arise?