From 133e4452ac3453bea94d5dbb2a6110729fe794b8 Mon Sep 17 00:00:00 2001 From: Michael Morello Date: Thu, 2 Jul 2020 08:05:14 +0200 Subject: [PATCH] Add documentation re. init containers customization (#3369) --- .../customize-pods.asciidoc | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/docs/orchestrating-elastic-stack-applications/customize-pods.asciidoc b/docs/orchestrating-elastic-stack-applications/customize-pods.asciidoc index 9fa3f784ff..2fbb2aca6f 100644 --- a/docs/orchestrating-elastic-stack-applications/customize-pods.asciidoc +++ b/docs/orchestrating-elastic-stack-applications/customize-pods.asciidoc @@ -64,6 +64,34 @@ spec: NOTE: APM Server configuration is identical to the Kibana configuration except for the `apiVersion` and `kind` fields. +The example below shows how it's also possible to customize the init containers created as part of the Pods to initialize the filesystem or to manage the keystores. + +[source,yaml,subs="attributes,callouts"] +---- +apiVersion: elasticsearch.k8s.elastic.co/{eck_crd_version} +kind: Elasticsearch +metadata: + name: quickstart +spec: + version: {version} + nodeSets: + - name: default + count: 3 + podTemplate: + spec: + initContainers: + - name: elastic-internal-init-keystore + resources: # override the default resources set by the operator + limits: + cpu: 1000m + memory: 368Mi + requests: + cpu: 1000m + memory: 368Mi + secureSettings: + - secretName: es-secret +---- + [float] == More examples