From 3cc26cea1f76bade902b2bbaffe36159c5038209 Mon Sep 17 00:00:00 2001 From: Dexter Lee Date: Mon, 11 Oct 2021 20:59:35 -0700 Subject: [PATCH] fix(docs): Fix documentation for elasticsearch setup for aws (#3360) --- docs/deploy/aws.md | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/docs/deploy/aws.md b/docs/deploy/aws.md index 124544368ecab8..ea0a3b3392c957 100644 --- a/docs/deploy/aws.md +++ b/docs/deploy/aws.md @@ -234,7 +234,6 @@ Update the elasticsearch settings under global in the values.yaml as follows. elasticsearch: host: <> port: "443" - indexPrefix: demo useSSL: "true" ``` @@ -244,10 +243,33 @@ You can also allow communication via HTTP (without SSL) by using the settings be elasticsearch: host: <> port: "80" - indexPrefix: demo ``` -Lastly, you need to set the following env variable for **elasticsearchSetupJob**. +If you have fine-grained access control enabled with basic authentication, first run the following to create a k8s +secret with the password. + +``` +kubectl delete secret elasticsearch-secrets +kubectl create secret generic elasticsearch-secrets --from-literal=elasticsearch-password=<> +``` + +Then use the settings below. + +``` + elasticsearch: + host: <> + port: "443" + useSSL: "true" + auth: + username: <> + password: + secretRef: elasticsearch-secrets + secretName: elasticsearch-password +``` + +Lastly, you **NEED** to set the following env variable for **elasticsearchSetupJob**. AWS Elasticsearch/Opensearch +service uses OpenDistro version of Elasticsearch, which does not support the "datastream" functionality. As such, we use +a different way of creating time based indices. ``` elasticsearchSetupJob: