From bcb438bc95f03389810cc5755ed296f0c231dfaa Mon Sep 17 00:00:00 2001 From: Michael Morello Date: Wed, 16 Mar 2022 11:36:59 +0100 Subject: [PATCH] [DOC] vm.max_map_count: update init container example (#5469) (#5482) * [DOC] vm.max_map_count: update init container example (#5469) * Update NOTICE.txt --- NOTICE.txt | 2 +- config/samples/elasticsearch/elasticsearch.yaml | 1 + .../elasticsearch/virtual-memory.asciidoc | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NOTICE.txt b/NOTICE.txt index d96164de3a..64ff743057 100644 --- a/NOTICE.txt +++ b/NOTICE.txt @@ -1,4 +1,4 @@ -Copyright 2018-2021 Elasticsearch BV +Copyright 2018-2022 Elasticsearch BV This product includes software developed by The Apache Software Foundation (http://www.apache.org/). diff --git a/config/samples/elasticsearch/elasticsearch.yaml b/config/samples/elasticsearch/elasticsearch.yaml index 28955ce183..54e79f2dc7 100644 --- a/config/samples/elasticsearch/elasticsearch.yaml +++ b/config/samples/elasticsearch/elasticsearch.yaml @@ -25,6 +25,7 @@ spec: # - name: sysctl # securityContext: # privileged: true + # runAsUser: 0 # command: ['sh', '-c', 'sysctl -w vm.max_map_count=262144'] ### # uncomment the line below if you are using a service mesh such as linkerd2 that uses service account tokens for pod identification. diff --git a/docs/orchestrating-elastic-stack-applications/elasticsearch/virtual-memory.asciidoc b/docs/orchestrating-elastic-stack-applications/elasticsearch/virtual-memory.asciidoc index b9cc6d938c..86218cde51 100644 --- a/docs/orchestrating-elastic-stack-applications/elasticsearch/virtual-memory.asciidoc +++ b/docs/orchestrating-elastic-stack-applications/elasticsearch/virtual-memory.asciidoc @@ -30,6 +30,7 @@ spec: - name: sysctl securityContext: privileged: true + runAsUser: 0 command: ['sh', '-c', 'sysctl -w vm.max_map_count=262144'] EOF ----